binutils: use TARGET_PREFIX for the convenience links

This ensures it works even if TARGET_PREFIX != ${TARGET_SYS}-

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Chris Larson
2011-08-30 00:27:43 +00:00
committed by Koen Kooi
parent dac513c144
commit 33bd83fa53
@@ -109,8 +109,8 @@ do_install () {
cd ${D}${bindir} cd ${D}${bindir}
# Symlinks for ease of running these on the native target # Symlinks for ease of running these on the native target
for p in ${TARGET_SYS}-* ; do for p in ${TARGET_PREFIX}* ; do
ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,`
done done
rm ${D}${bindir}/ar ${D}${bindir}/strings rm ${D}${bindir}/ar ${D}${bindir}/strings