1.1 --- a/scripts/build/cc/gcc.sh Fri Nov 18 11:32:50 2011 +0800
1.2 +++ b/scripts/build/cc/gcc.sh Sat Dec 31 16:23:27 2011 +0100
1.3 @@ -293,6 +293,10 @@
1.4
1.5 [ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")
1.6
1.7 + if [ "${CT_CC_GCC_SYSTEM_ZLIB}" = "y" ]; then
1.8 + extra_config+=("--with-system-zlib")
1.9 + fi
1.10 +
1.11 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
1.12
1.13 # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
1.14 @@ -603,6 +607,10 @@
1.15
1.16 [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
1.17
1.18 + if [ "${CT_CC_GCC_SYSTEM_ZLIB}" = "y" ]; then
1.19 + extra_config+=("--with-system-zlib")
1.20 + fi
1.21 +
1.22 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
1.23
1.24 CT_DoExecLog CFG \