diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-08-19 00:16:38 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-08-19 00:16:38 +0200 |
commit | 8441fea07f0c91a9dc69eede4c7179be2546bc30 (patch) | |
tree | a976ec6f111ad143a6cd854ac568353ae4ae32e7 /mk | |
parent | 2e53850f2b1da81c0971cb2a94142d75d78b0988 (diff) | |
download | embtoolkit-8441fea07f0c91a9dc69eede4c7179be2546bc30.tar.gz embtoolkit-8441fea07f0c91a9dc69eede4c7179be2546bc30.tar.bz2 embtoolkit-8441fea07f0c91a9dc69eede4c7179be2546bc30.tar.xz |
Toolchain: binutils: check if multilib is selected or not and build according
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/binutils.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/binutils.mk b/mk/binutils.mk index 4181437..eeb9a55 100644 --- a/mk/binutils.mk +++ b/mk/binutils.mk @@ -27,6 +27,12 @@ BINUTILS_SITE := http://ftp.gnu.org/gnu/binutils BINUTILS_PACKAGE := binutils-$(BINUTILS_VERSION).tar.bz2 BINUTILS_BUILD_DIR := $(TOOLS_BUILD)/binutils +ifeq ($(CONFIG_EMBTK_TOOLCHAIN_MULTILIB),) +BINUTILS_MULTILIB := --disable-multilib +else +BINUTILS_MULTILIB := --enable-multilib +endif + binutils_install: $(BINUTILS_BUILD_DIR)/.built $(BINUTILS_BUILD_DIR)/.built: download_binutils \ @@ -51,6 +57,7 @@ $(BINUTILS_BUILD_DIR)/.configured: cd $(BINUTILS_BUILD_DIR); CC=$(HOSTCC_CACHED) CXX=$(HOSTCXX_CACHED) \ $(TOOLS_BUILD)/binutils-$(BINUTILS_VERSION)/configure \ --prefix=$(TOOLS) --with-sysroot=$(SYSROOT) --disable-werror \ - --disable-nls --with-gmp=$(GMP_HOST_DIR) --with-mpfr=$(MPFR_HOST_DIR) \ + --disable-nls $(BINUTILS_MULTILIB) \ + --with-gmp=$(GMP_HOST_DIR) --with-mpfr=$(MPFR_HOST_DIR) \ --target=$(STRICT_GNU_TARGET) --build=$(HOST_BUILD) --host=$(HOST_ARCH) @touch $@ |