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

OE GIT Trial gittrial at amethyst.openembedded.net
Sat Aug 2 11:10:59 UTC 2008


Module: OE.dev
Branch: org.openembedded.dev
Commit: 2779f9a5e5236d17af5295f28fb24855a81e274b
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=2779f9a5e5236d17af5295f28fb24855a81e274b

Author:  <koen at openembedded.org>
Date:   Sat Aug  2 11:07:23 2008 +0000

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages/gcc/gcc-cross-intermediate.inc b/packages/gcc/gcc-cross-intermediate.inc
index de260ed..4746140 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





More information about the Openembedded-commits mailing list