aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/binutils
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-06-19 19:58:18 -0400
committerTom Rini <trini@embeddedalley.com>2009-06-19 19:58:18 -0400
commitc528566fbc35002b4eeaf9e57705d4958bb25698 (patch)
treed737d34b2ad6c12c592ddcb9e33143055dff26a7 /recipes/binutils
parent598ee434efdc895bfdbc004b8e51b5d5707bc6b6 (diff)
downloadopenembedded-c528566fbc35002b4eeaf9e57705d4958bb25698.tar.gz
binutils-cross-sdk: ${layout_base_bindir} is not the path to where the real binary is.
The binary will always be two levels back, and it will always be in ${bindir} as that's what we pass to configure, so basename that to find the right directory name
Diffstat (limited to 'recipes/binutils')
-rw-r--r--recipes/binutils/binutils-cross-sdk.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/binutils/binutils-cross-sdk.inc b/recipes/binutils/binutils-cross-sdk.inc
index 6e9cda09b8..0ebe5147e6 100644
--- a/recipes/binutils/binutils-cross-sdk.inc
+++ b/recipes/binutils/binutils-cross-sdk.inc
@@ -17,7 +17,7 @@ do_install () {
rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf
rm ${D}${prefix}/${TARGET_SYS}/bin/*
for l in ${D}${bindir}/*; do
- ln -sf "../../${layout_base_bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
+ ln -sf "../../`basename ${bindir}`/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
done
# Install the libiberty header