1.1 --- a/scripts/build/cc/gcc.sh Wed Apr 07 18:35:21 2010 +0200
1.2 +++ b/scripts/build/cc/gcc.sh Wed Apr 07 18:35:22 2010 +0200
1.3 @@ -313,6 +313,15 @@
1.4 extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
1.5 fi
1.6
1.7 + if [ "${CT_THREADS}" = "none" ]; then
1.8 + extra_config+=("--disable-threads")
1.9 + if [ "${CT_CC_GCC_4_2_or_later}" = y ]; then
1.10 + extra_config+=("--disable-libgomp")
1.11 + fi
1.12 + else
1.13 + extra_config+=("--enable-threads=posix")
1.14 + fi
1.15 +
1.16 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
1.17
1.18 # --enable-symvers=gnu really only needed for sh4 to work around a
1.19 @@ -334,7 +343,6 @@
1.20 "${extra_config[@]}" \
1.21 --with-local-prefix="${CT_SYSROOT_DIR}" \
1.22 --disable-nls \
1.23 - --enable-threads=posix \
1.24 --enable-symvers=gnu \
1.25 --enable-c99 \
1.26 --enable-long-long \