summaryrefslogtreecommitdiff
path: root/binutils/binutils_2.14.90.0.6.oe
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/binutils_2.14.90.0.6.oe')
-rw-r--r--binutils/binutils_2.14.90.0.6.oe13
1 files changed, 11 insertions, 2 deletions
diff --git a/binutils/binutils_2.14.90.0.6.oe b/binutils/binutils_2.14.90.0.6.oe
index e5f7cd02e6..6c15e89ac9 100644
--- a/binutils/binutils_2.14.90.0.6.oe
+++ b/binutils/binutils_2.14.90.0.6.oe
@@ -1,7 +1,7 @@
SECTION = "devel"
inherit autotools gettext
-PR = "r1"
+PR = "r2"
DESCRIPTION = "A GNU collection of binary utilities"
LICENSE = "GPL"
@@ -11,7 +11,8 @@ PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"
FILES_${PN} = " \
${bindir}/${TARGET_PREFIX}* \
- ${libdir}/lib*-*.so"
+ ${libdir}/lib*-*.so \
+ ${prefix}/${TARGET_SYS}/bin/*"
FILES_${PN}-dev = " \
${includedir} \
@@ -102,6 +103,14 @@ do_install () {
# We don't really need these, so we'll remove them...
rm -rf ${D}/${libdir}/ldscripts
+ # Fix the /usr/${TARGET_SYS}/bin/* links
+ for l in ${D}/${prefix}/${TARGET_SYS}/bin/*; do
+ rm -f $l
+ ln -sf `echo ${prefix}/${TARGET_SYS}/bin \
+ | tr -s / \
+ | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
+ done
+
# Install the libiberty header
install -d ${D}/${includedir}
install -m 644 ${S}/include/ansidecl.h ${D}/${includedir}