diff -r e3e1c9d45bdd -r 3dc2727ebffc scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri Nov 18 11:32:50 2011 +0800 +++ b/scripts/build/cc/gcc.sh Sat Dec 31 16:23:27 2011 +0100 @@ -293,6 +293,10 @@ [ "${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 @@ [ "${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 \