[oe-commits] org.oe.dev gcc-cross-intermediate: remove dummy libc.so *after* staging, since do_stage will fail with "cannot find -lc" if it's removed beforehand.

koen commit oe at amethyst.openembedded.net
Mon Sep 1 17:47:43 UTC 2008


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.

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 53ed84a346013a17d2e419b516e0718f0a5ea922
ViewMTN: http://monotone.openembedded.org/revision/info/53ed84a346013a17d2e419b516e0718f0a5ea922
Files:
1
packages/gcc/gcc-cross-intermediate.inc
Diffs:

#
# mt diff -r65ac92c0b62f4a57f068a130740079c7f3577e01 -r53ed84a346013a17d2e419b516e0718f0a5ea922
#
#
#
# patch "packages/gcc/gcc-cross-intermediate.inc"
#  from [f9fd7b7bd527b6a3bd2760f51051b083e23cfc8d]
#    to [77f639966c6bd1fab93300e84fe437a7dd013aba]
#
============================================================
--- packages/gcc/gcc-cross-intermediate.inc	f9fd7b7bd527b6a3bd2760f51051b083e23cfc8d
+++ packages/gcc/gcc-cross-intermediate.inc	77f639966c6bd1fab93300e84fe437a7dd013aba
@@ -16,7 +16,7 @@ EXTRA_OECONF = "--with-local-prefix=${ST
 		--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






More information about the Openembedded-commits mailing list