diff -r 8bb865222229 -r 5284cdc29a63 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Wed Apr 07 18:35:21 2010 +0200 +++ b/scripts/build/cc/gcc.sh Wed Apr 07 18:35:22 2010 +0200 @@ -313,6 +313,15 @@ extra_config+=("--with-mpc=${CT_PREFIX_DIR}") fi + if [ "${CT_THREADS}" = "none" ]; then + extra_config+=("--disable-threads") + if [ "${CT_CC_GCC_4_2_or_later}" = y ]; then + extra_config+=("--disable-libgomp") + fi + else + extra_config+=("--enable-threads=posix") + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # --enable-symvers=gnu really only needed for sh4 to work around a @@ -334,7 +343,6 @@ "${extra_config[@]}" \ --with-local-prefix="${CT_SYSROOT_DIR}" \ --disable-nls \ - --enable-threads=posix \ --enable-symvers=gnu \ --enable-c99 \ --enable-long-long \