diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-23 23:51:07 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-23 23:51:07 +0100 |
commit | 61ce016e46a37a8901c31761d2a125c6f53c9c9a (patch) | |
tree | 5193365fcbf8e7cf65a474e0d10d4cdab25c1da9 | |
parent | c23fe1a32a64b3c90756a3f94d66f6d242ef4c79 (diff) | |
download | crosstool-ng-61ce016e46a37a8901c31761d2a125c6f53c9c9a.tar.gz crosstool-ng-61ce016e46a37a8901c31761d2a125c6f53c9c9a.tar.bz2 crosstool-ng-61ce016e46a37a8901c31761d2a125c6f53c9c9a.zip |
cc/gcc: build multilib
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/build/cc/gcc.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 981e1279..37454247 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -297,6 +297,12 @@ do_cc_core() { extra_config+=("--with-system-zlib") fi + if [ "${CT_MULTILIB}" = "y" ]; then + extra_config+=("--enable-multilib") + else + extra_config+=("--disable-multilib") + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532) @@ -310,7 +316,6 @@ do_cc_core() { --target=${CT_TARGET} \ --prefix="${core_prefix_dir}" \ --with-local-prefix="${CT_SYSROOT_DIR}" \ - --disable-multilib \ --disable-libmudflap \ ${CC_CORE_SYSROOT_ARG} \ "${extra_config[@]}" \ @@ -439,7 +444,6 @@ do_cc() { lang_opt=$(echo "${lang_opt},${CT_CC_LANG_OTHERS}" |sed -r -e 's/,+/,/g; s/,*$//;') extra_config+=("--enable-languages=${lang_opt}") - extra_config+=("--disable-multilib") for tmp in ARCH ABI CPU TUNE FPU FLOAT; do eval tmp="\${CT_ARCH_WITH_${tmp}}" if [ -n "${tmp}" ]; then @@ -611,6 +615,12 @@ do_cc() { extra_config+=("--with-system-zlib") fi + if [ "${CT_MULTILIB}" = "y" ]; then + extra_config+=("--enable-multilib") + else + extra_config+=("--disable-multilib") + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" CT_DoExecLog CFG \ |