aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gcc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-08-02 11:07:23 +0000
committerKoen Kooi <koen@openembedded.org>2008-08-02 11:07:23 +0000
commitab1473a0c5923e5c9bd47141a1470d253635fd28 (patch)
tree8679f1189f4530a601b2cc16fce932ac3a8fd102 /packages/gcc
parente3ed02fbc28ba8e6e2f4d10f4e6da1ed4ac5e070 (diff)
downloadopenembedded-ab1473a0c5923e5c9bd47141a1470d253635fd28.tar.gz
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.
Diffstat (limited to 'packages/gcc')
-rw-r--r--packages/gcc/gcc-cross-intermediate.inc2
1 files changed, 1 insertions, 1 deletions
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