gcc-cross-intermediate: remove dummy libc.so *after* staging, since do_stage will...
authorKoen Kooi <koen@openembedded.org>
Sat, 2 Aug 2008 11:07:23 +0000 (11:07 +0000)
committerKoen Kooi <koen@openembedded.org>
Sat, 2 Aug 2008 11:07:23 +0000 (11:07 +0000)
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

index de260ed..4746140 100644 (file)
@@ -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