aboutsummaryrefslogtreecommitdiff
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:27:47 -0800
commitdec3967e155d4dd7b3570802e4ba1f3863c5408b (patch)
treec4e43848026533fde39dad41f8749601609d677a
parent1550b65731472dab6b9cc7e3488a1aa1ab0906e3 (diff)
downloadopenembedded-release-2010.12.zip
openembedded-release-2010.12.tar.gz
openembedded-release-2010.12.tar.bz2
gcc-package-target.inc: Fix the broken libgcc_s.so symlinkrelease-2010.12
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>
-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 5720318..d2c9a80 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