diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-23 23:27:12 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-23 23:27:12 +0100 |
commit | c23fe1a32a64b3c90756a3f94d66f6d242ef4c79 (patch) | |
tree | 5ac65efc970d83c42cfc3b086b3457ee600fc5b5 | |
parent | 4bc4d99b8df79632c052d4bb18742f432fcd18c5 (diff) | |
download | crosstool-ng-c23fe1a32a64b3c90756a3f94d66f6d242ef4c79.tar.gz crosstool-ng-c23fe1a32a64b3c90756a3f94d66f6d242ef4c79.tar.bz2 crosstool-ng-c23fe1a32a64b3c90756a3f94d66f6d242ef4c79.zip |
binutils/binutils: build multilib
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/build/binutils/binutils.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 89c08eda..ba30fb90 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -61,6 +61,11 @@ do_binutils() { extra_config+=("--with-pkgversion=${CT_PKGVERSION}") [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}") fi + if [ "${CT_MULTILIB}" = "y" ]; then + extra_config+=("--enable-multilib") + else + extra_config+=("--disable-multilib") + fi [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") @@ -74,7 +79,6 @@ do_binutils() { --host=${CT_HOST} \ --target=${CT_TARGET} \ --prefix=${CT_PREFIX_DIR} \ - --disable-multilib \ --disable-werror \ "${extra_config[@]}" \ ${CT_ARCH_WITH_FLOAT} \ @@ -166,6 +170,11 @@ do_binutils_target() { extra_config+=("--with-pkgversion=${CT_PKGVERSION}") [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}") fi + if [ "${CT_MULTILIB}" = "y" ]; then + extra_config+=("--enable-multilib") + else + extra_config+=("--disable-multilib") + fi [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") @@ -178,7 +187,6 @@ do_binutils_target() { --disable-werror \ --enable-shared \ --enable-static \ - --disable-multilib \ "${extra_config[@]}" \ ${CT_ARCH_WITH_FLOAT} \ "${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}" |