aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-12-03 12:05:34 -0800
committerKhem Raj <raj.khem@gmail.com>2010-12-03 12:18:11 -0800
commit42b898e30b3ae731de6902ff8e72919ac12cbf75 (patch)
tree531babb75d5f89e202435660b0e5b2feeabace6f /recipes/gcc
parent5d15f2d0f1f553aac1acafcc5f2d140ee3e5f0c0 (diff)
downloadopenembedded-42b898e30b3ae731de6902ff8e72919ac12cbf75.tar.gz
gcc-package-target.inc: Fix the broken libgcc_s.so symlink
Currently libgcc_s.so points to libgcc_s.so.1 in the same <target>/usr/lib dir but this library is in /lib and target toolchain fails. We package libgcc_so into gcc package and create the proper symlink as it used to be Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-package-target.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-package-target.inc b/recipes/gcc/gcc-package-target.inc
index 57203180d1..d2c9a80ef4 100644
--- a/recipes/gcc/gcc-package-target.inc
+++ b/recipes/gcc/gcc-package-target.inc
@@ -127,6 +127,11 @@ do_install () {
else
mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir} || true
fi
+ rm -f ${D}${libdir}/libgcc_s.so || true
+ ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \
+ | tr -s / \
+ | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \
+ ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so
# We don't need libtool libraries
rm -f ${D}${libdir}/libg2c.la &>/dev/null || true