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