summaryrefslogtreecommitdiff
path: root/binutils/binutils_cvs.oe
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/binutils_cvs.oe')
-rw-r--r--binutils/binutils_cvs.oe13
1 files changed, 11 insertions, 2 deletions
diff --git a/binutils/binutils_cvs.oe b/binutils/binutils_cvs.oe
index d9ae5ce815..eb6de962c7 100644
--- a/binutils/binutils_cvs.oe
+++ b/binutils/binutils_cvs.oe
@@ -6,13 +6,14 @@ LICENSE = "GPL"
MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-cvs"
PV = "0.0cvs${CVSDATE}"
-PR = "r1"
+PR = "r2"
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} \
@@ -99,6 +100,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 -m 644 ${S}/include/ansidecl.h ${D}/${includedir}
install -m 644 ${S}/include/libiberty.h ${D}/${includedir}