summaryrefslogtreecommitdiffstats
path: root/rules/binutils.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-01-27 09:50:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-01-27 09:57:41 +0100
commit4081c7013bb418e63d90b7fb820d1d585643900a (patch)
treeff2ef92be04015fd3b9d9ca5598a1eefde9127ed /rules/binutils.make
parentf77d317eb826ab54d03b648b3143b879b9362884 (diff)
downloadptxdist-4081c7013bb418e63d90b7fb820d1d585643900a.tar.gz
ptxdist-4081c7013bb418e63d90b7fb820d1d585643900a.tar.xz
binutils: use host_configargs to avoid configure option checking issues
The toplevel configure script does not understand these options, so it fails with strict option checking if these options are specified directly. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/binutils.make')
-rw-r--r--rules/binutils.make13
1 files changed, 8 insertions, 5 deletions
diff --git a/rules/binutils.make b/rules/binutils.make
index 6f690f6b0..dab1726b1 100644
--- a/rules/binutils.make
+++ b/rules/binutils.make
@@ -33,17 +33,20 @@ BINUTILS_DIR := $(BUILDDIR)/$(BINUTILS)
# Prepare
# ----------------------------------------------------------------------------
+BINUTILS_CONF_ENV := \
+ $(CROSS_ENV) \
+ host_configargs='$(strip \
+ --enable-targets=$(PTXCONF_GNU_TARGET) \
+ --disable-nls \
+ --enable-commonbfdlib \
+ --enable-install-libiberty \
+ --disable-multilib)'
#
# autoconf
#
BINUTILS_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--target=$(PTXCONF_GNU_TARGET) \
- --enable-targets=$(PTXCONF_GNU_TARGET) \
- --disable-nls \
- --enable-commonbfdlib \
- --enable-install-libiberty \
- --disable-multilib \
--disable-werror
BINUTILS_CFLAGS := \