diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-12-31 16:23:27 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-12-31 16:23:27 +0100 |
commit | 92744ca68f2aeee36a62611d85adb50bb0b6530b (patch) | |
tree | 0d2cf98ffb3aa49ada4984ea2f0bcf834a9e7763 /scripts/build/cc/gcc.sh | |
parent | 13a05a472080b90b252385cb1ab88aca84dd704c (diff) | |
download | crosstool-ng-92744ca68f2aeee36a62611d85adb50bb0b6530b.tar.gz crosstool-ng-92744ca68f2aeee36a62611d85adb50bb0b6530b.tar.bz2 crosstool-ng-92744ca68f2aeee36a62611d85adb50bb0b6530b.zip |
cc/gcc: add option to use system zlib
In some cases, it might be desirable to use the system zlib
Eg. because latest gcc seem to be totally borked when it comes
to multilib, and tries to build a multilib host zlib, when it
is *absolutely* *not* needed: we want mulitlib on the target,
not on the host! Sigh... :-(
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r-- | scripts/build/cc/gcc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 71ae981c..981e1279 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -293,6 +293,10 @@ do_cc_core() { [ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch") + if [ "${CT_CC_GCC_SYSTEM_ZLIB}" = "y" ]; then + extra_config+=("--with-system-zlib") + 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) @@ -603,6 +607,10 @@ do_cc() { [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") + if [ "${CT_CC_GCC_SYSTEM_ZLIB}" = "y" ]; then + extra_config+=("--with-system-zlib") + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" CT_DoExecLog CFG \ |