mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
gcc: Gnu OpenMP support depends on threading
Instead of checking if thread support is enabled during the build, move the check to kconfig-time. Since if threading support is not availble, libgomp should not be available either. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
parent
8b40ab0d6e
commit
cfd2a6b69c
@ -137,12 +137,15 @@ config CC_GCC_LIBMUDFLAP
|
|||||||
config CC_GCC_LIBGOMP
|
config CC_GCC_LIBGOMP
|
||||||
bool
|
bool
|
||||||
prompt "Compile libgomp"
|
prompt "Compile libgomp"
|
||||||
|
depends on !THREADS_NONE
|
||||||
help
|
help
|
||||||
libgomp is "the GNU implementation of the OpenMP Application Programming
|
libgomp is "the GNU implementation of the OpenMP Application Programming
|
||||||
Interface (API) for multi-platform shared-memory parallel programming in
|
Interface (API) for multi-platform shared-memory parallel programming in
|
||||||
C/C++ and Fortran". See:
|
C/C++ and Fortran". See:
|
||||||
http://gcc.gnu.org/onlinedocs/libgomp/
|
http://gcc.gnu.org/onlinedocs/libgomp/
|
||||||
|
|
||||||
|
GNU OpenMP support requires threading.
|
||||||
|
|
||||||
The default is 'N'. Say 'Y' if you need it, and report success/failure.
|
The default is 'N'. Say 'Y' if you need it, and report success/failure.
|
||||||
|
|
||||||
config CC_GCC_LIBSSP
|
config CC_GCC_LIBSSP
|
||||||
|
@ -816,7 +816,6 @@ do_gcc_backend() {
|
|||||||
|
|
||||||
if [ "${CT_THREADS}" = "none" ]; then
|
if [ "${CT_THREADS}" = "none" ]; then
|
||||||
extra_config+=("--disable-threads")
|
extra_config+=("--disable-threads")
|
||||||
extra_config+=("--disable-libgomp")
|
|
||||||
else
|
else
|
||||||
if [ "${CT_THREADS}" = "win32" ]; then
|
if [ "${CT_THREADS}" = "win32" ]; then
|
||||||
extra_config+=("--enable-threads=win32")
|
extra_config+=("--enable-threads=win32")
|
||||||
|
Loading…
Reference in New Issue
Block a user