aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-01-27 11:13:41 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-03 16:12:19 +0000
commit050eb9c82d8a2d04f2578c04a826b7762d737446 (patch)
tree12e42447251c636e25b0582b3c2e4c6e04e6d2bd /meta/recipes-devtools/binutils/binutils.inc
parentce410852b7623379ad6961529e28f643e209749e (diff)
downloadopenembedded-core-contrib-050eb9c82d8a2d04f2578c04a826b7762d737446.tar.gz
openembedded-core-contrib-050eb9c82d8a2d04f2578c04a826b7762d737446.tar.bz2
openembedded-core-contrib-050eb9c82d8a2d04f2578c04a826b7762d737446.zip
binutils: fixes for build with an external csl toolchain
Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 6130ab4665..e343242366 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -51,6 +51,7 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
--enable-install-libbfd \
--enable-shared \
+ --disable-werror \
${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
EXTRA_OECONF_virtclass-native = "--enable-target=all --enable-64-bit-bfd --enable-install-libbfd"
@@ -113,11 +114,11 @@ do_install () {
cd ${D}${bindir}
# Symlinks for ease of running these on the native target
- for p in ${TARGET_SYS}-* ; do
+ for p in ${TARGET_PREFIX}* ; do
ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,`
done
- rm ${D}${bindir}/ar ${D}${bindir}/strings
+ rm -f ${D}${bindir}/ar ${D}${bindir}/strings
oe_multilib_header bfd.h
}