diff -r c7126e94e286 -r efea409ff8be scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Sat Oct 09 22:49:28 2010 +0200 +++ b/scripts/build/cc/gcc.sh Fri Oct 08 23:58:58 2010 +0200 @@ -371,6 +371,11 @@ else extra_config+=(--disable-libmudflap) fi + if [ "${CT_CC_GCC_LIBGOMP}" = "y" ]; then + extra_config+=(--enable-libgomp) + else + extra_config+=(--disable-libgomp) + fi if [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then # this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2 @@ -408,6 +413,7 @@ if [ "${CT_THREADS}" = "none" ]; then extra_config+=("--disable-threads") if [ "${CT_CC_GCC_4_2_or_later}" = y ]; then + CT_Test "Disabling libgomp for no-thread gcc>=4.2" "${CT_CC_GCC_LIBGOMP}" = "Y" extra_config+=("--disable-libgomp") fi else