Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit dec3967e155d4dd7b3570802e4ba1f3863c5408b 1 parent 1550b65
@kraj kraj authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 recipes/gcc/gcc-package-target.inc
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.