From ab1473a0c5923e5c9bd47141a1470d253635fd28 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 2 Aug 2008 11:07:23 +0000 Subject: gcc-cross-intermediate: remove dummy libc.so *after* staging, since do_stage will fail with "cannot find -lc" if it's removed beforehand. This does contradict this part of the commit message of the previous change: "This fix deletes the dummy libc.so before gcc-intermediate is staged. Because the main purpose of dummy libc.so is to get gcc-intermediate built with shared lib support. Ideally this libc.so should be deleted right after do_configure of gcc-intermediate but gcc's configure is spread across and some configure stuff happens during compile step. Therefore its best to delete this libc.so after the compile step is done." I don't have a better solution that this one. --- packages/gcc/gcc-cross-intermediate.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/gcc/gcc-cross-intermediate.inc b/packages/gcc/gcc-cross-intermediate.inc index de260ed981..4746140346 100644 --- a/packages/gcc/gcc-cross-intermediate.inc +++ b/packages/gcc/gcc-cross-intermediate.inc @@ -16,7 +16,7 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \ --with-build-sysroot=${STAGING_DIR_TARGET} \ ${@get_gcc_fpu_setting(bb, d)}" -do_stage_prepend () { +do_stage_append () { # get rid of dummy libc.so if [ -z "`file ${STAGING_DIR_TARGET}${layout_libdir}/libc.so | grep "ASCII C program text"`" ]; then rm -rf ${STAGING_DIR_TARGET}${layout_libdir}/libc.so -- cgit v1.2.3