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>
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