aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-10-14 23:40:37 -0700
committerKhem Raj <raj.khem@gmail.com>2010-10-15 13:54:54 -0700
commitdf2f9a5553c33acfe749e7be7291166f62361691 (patch)
treea21e3bf31ae320c0d2410dabcb9c3c971b1c0214 /recipes/gcc
parentfb8697d9dfd35b4195ddfdf64f1c459ffadd437e (diff)
downloadopenembedded-df2f9a5553c33acfe749e7be7291166f62361691.tar.gz
gcc-cross-intermediate.inc: Move libgcc from cross dir to target sysroot
shared version of libgcc is also installed by gcc-cross-intermediate which we did not move to staging as a result cross gcc found this libgcc and used it compailing about missing libc.so stuff. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-cross-intermediate.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/gcc/gcc-cross-intermediate.inc b/recipes/gcc/gcc-cross-intermediate.inc
index 6dbdb94581..2b6b24fb4c 100644
--- a/recipes/gcc/gcc-cross-intermediate.inc
+++ b/recipes/gcc/gcc-cross-intermediate.inc
@@ -18,8 +18,16 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
${@get_gcc_mips_plt_setting(bb, d)}"
do_install () {
- oe_runmake 'DESTDIR=${D}' install
+ oe_runmake 'DESTDIR=${D}' install
+ install -d ${D}${target_base_libdir}
+ install -d ${D}${target_libdir}
+ for d in ${TARGET_SYS}/lib/nof ${TARGET_SYS}/lib64 ${TARGET_SYS}/lib; do
+ if [ -d ${D}${prefix}/$d/ ]; then
+ mv -f ${D}${prefix}/$d/libgcc* ${D}${target_base_libdir} || true
+ mv -f ${D}${prefix}/$d/* ${D}${target_libdir} || true
+ fi
+ done
# If this is important, we should remove the staging package here
# get rid of dummy libc.so
#if [ -z "`file ${STAGING_DIR_TARGET}${target_libdir}/libc.so | grep "ASCII C program text"`" ]; then