1.1 --- a/scripts/build/cc/gcc.sh Sat Oct 09 22:49:28 2010 +0200
1.2 +++ b/scripts/build/cc/gcc.sh Fri Oct 08 23:58:58 2010 +0200
1.3 @@ -371,6 +371,11 @@
1.4 else
1.5 extra_config+=(--disable-libmudflap)
1.6 fi
1.7 + if [ "${CT_CC_GCC_LIBGOMP}" = "y" ]; then
1.8 + extra_config+=(--enable-libgomp)
1.9 + else
1.10 + extra_config+=(--disable-libgomp)
1.11 + fi
1.12
1.13 if [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then
1.14 # this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2
1.15 @@ -408,6 +413,7 @@
1.16 if [ "${CT_THREADS}" = "none" ]; then
1.17 extra_config+=("--disable-threads")
1.18 if [ "${CT_CC_GCC_4_2_or_later}" = y ]; then
1.19 + CT_Test "Disabling libgomp for no-thread gcc>=4.2" "${CT_CC_GCC_LIBGOMP}" = "Y"
1.20 extra_config+=("--disable-libgomp")
1.21 fi
1.22 else