mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
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" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
d9b9c3fa39
commit
8922def6b4
@ -62,6 +62,18 @@ config CC_GCC_LIBMUDFLAP
|
|||||||
alternatives (eg. DUMA, dmalloc...) that need neither re-
|
alternatives (eg. DUMA, dmalloc...) that need neither re-
|
||||||
compilation nor re-link.
|
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."
|
comment "Misc. obscure options."
|
||||||
|
@ -371,6 +371,11 @@ do_cc() {
|
|||||||
else
|
else
|
||||||
extra_config+=(--disable-libmudflap)
|
extra_config+=(--disable-libmudflap)
|
||||||
fi
|
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
|
if [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then
|
||||||
# this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2
|
# this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2
|
||||||
@ -408,6 +413,7 @@ do_cc() {
|
|||||||
if [ "${CT_THREADS}" = "none" ]; then
|
if [ "${CT_THREADS}" = "none" ]; then
|
||||||
extra_config+=("--disable-threads")
|
extra_config+=("--disable-threads")
|
||||||
if [ "${CT_CC_GCC_4_2_or_later}" = y ]; then
|
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")
|
extra_config+=("--disable-libgomp")
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user