summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 81ecbb50cc..0fb6cae407 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -131,12 +131,12 @@ do_install () {
131 # We don't really need these, so we'll remove them... 131 # We don't really need these, so we'll remove them...
132 rm -rf ${D}${libdir}/ldscripts 132 rm -rf ${D}${libdir}/ldscripts
133 133
134 bindir_rel=${@os.path.relpath('${bindir}', '${prefix}/${TARGET_SYS}/bin')}
135
134 # Fix the /usr/${TARGET_SYS}/bin/* links 136 # Fix the /usr/${TARGET_SYS}/bin/* links
135 for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do 137 for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
136 rm -f $l 138 rm -f $l
137 ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ 139 ln -sf $bindir_rel/${TARGET_PREFIX}`basename $l` $l
138 | tr -s / \
139 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
140 done 140 done
141 141
142 # Install the libiberty header 142 # Install the libiberty header