aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-10-14 23:42:48 -0700
committerKhem Raj <raj.khem@gmail.com>2010-10-15 13:54:54 -0700
commitb10441991fe94b832ade5ffd3f38fa197a97a076 (patch)
tree8774419965c255aea26eca0e19a86109376f4938 /recipes/gcc
parentdf2f9a5553c33acfe749e7be7291166f62361691 (diff)
downloadopenembedded-b10441991fe94b832ade5ffd3f38fa197a97a076.tar.gz
gcc-package-cross.inc: Edit the libdir enties in libstdc++.la and libsupc++.la
We manually move libstdc++ to staging sysroot from default install location where gcc-cross installed it. During this process we have to make sure that .la files are edited to contain proper libdir entry pointing relative to sysroot. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-package-cross.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc
index 59e7ddecb7..045c790406 100644
--- a/recipes/gcc/gcc-package-cross.inc
+++ b/recipes/gcc/gcc-package-cross.inc
@@ -28,6 +28,13 @@ do_install () {
mv -f ${D}${prefix}/$d/* ${D}${target_libdir} || true
fi
done
+ # since we are moving the .la files to target sysroot we need to make sure that
+ # libdir points to right place within the target sysroot
+ for la in ${D}${target_libdir}/libstdc++.la ${D}${target_libdir}/libsupc++.la; do
+ if [ -f $la ]; then
+ sed -i -e "s:^libdir=.*:libdir='${target_libdir}':g;" $la
+ fi
+ done
# Manually run the target stripper since we won't get it run by
# the packaging.