diff options
author | Tom Rini <trini@embeddedalley.com> | 2009-06-19 19:58:18 -0400 |
---|---|---|
committer | Tom Rini <trini@embeddedalley.com> | 2009-06-19 19:58:18 -0400 |
commit | c528566fbc35002b4eeaf9e57705d4958bb25698 (patch) | |
tree | d737d34b2ad6c12c592ddcb9e33143055dff26a7 | |
parent | 598ee434efdc895bfdbc004b8e51b5d5707bc6b6 (diff) |
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
-rw-r--r-- | recipes/binutils/binutils-cross-sdk.inc | 2 |
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 |