# HG changeset patch # User "Yann E. MORIN" # Date 1286575138 -7200 # Node ID efea409ff8be42588aa8cc8026e9666cc0e243d5 # Parent 80f088eb06087a7131ea9b76723889608566cee9 cc/gcc: add an option to enable/disable build of libgomp libgomp is the GNU implementation of the OpenMP API. It can be usefull to have or miss, depends... Signed-off-by: "Yann E. MORIN" diff -r 80f088eb0608 -r efea409ff8be config/cc/gcc.in.2 --- a/config/cc/gcc.in.2 Fri Oct 08 23:53:41 2010 +0200 +++ b/config/cc/gcc.in.2 Fri Oct 08 23:58:58 2010 +0200 @@ -62,6 +62,18 @@ alternatives (eg. DUMA, dmalloc...) that need neither re- compilation nor re-link. +config CC_GCC_LIBGOMP + bool + prompt "Compile libgomp" + default n + help + libgomp is "the GNU implementation of the OpenMP Application Programming + Interface (API) for multi-platform shared-memory parallel programming in + C/C++ and Fortran". See: + http://gcc.gnu.org/onlinedocs/libgomp/ + + The default is 'N'. Say 'Y' if you need it, and report success/failure. + #----------------------------------------------------------------------------- comment "Misc. obscure options." diff -r 80f088eb0608 -r efea409ff8be scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri Oct 08 23:53:41 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