summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2010-04-07 16:35:22 (GMT)
committerArnaud Lacombe <lacombar@gmail.com>2010-04-07 16:35:22 (GMT)
commit93042972a8cf2d9e8ce6ef12e4e6976cc5bedec0 (patch)
tree8147a98167ed83bb0e741984a82323ea666c75d0 /config
parent2059d43d860c34035ee40479cf77da9cc8b59878 (diff)
cc/gcc: fix thread-less final gcc build
If threads are disabled in libc, we don't want to enable them in the final compiler. Doing so pass the configure stage, but fails latter on a missing <pthread.h>. Moreover, we don't want to build libgomp if threads are disabled; its configure script would fails anyway. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/cc/gcc.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in
index 053f221..c229703 100644
--- a/config/cc/gcc.in
+++ b/config/cc/gcc.in
@@ -62,24 +62,29 @@ config CC_V_4_3_1
config CC_V_4_2_4
bool
prompt "4.2.4"
+ select CC_GCC_4_2_or_later
config CC_V_4_2_3
bool
prompt "4.2.3 (OBSOLETE)"
+ select CC_GCC_4_2_or_later
depends on OBSOLETE
config CC_V_4_2_2
bool
prompt "4.2.2"
+ select CC_GCC_4_2_or_later
config CC_V_4_2_1
bool
prompt "4.2.1 (OBSOLETE)"
+ select CC_GCC_4_2_or_later
depends on OBSOLETE
config CC_V_4_2_0
bool
prompt "4.2.0 (OBSOLETE)"
+ select CC_GCC_4_2_or_later
depends on OBSOLETE
config CC_V_4_1_2
@@ -99,15 +104,21 @@ config CC_V_3_4_6
endchoice
+config CC_GCC_4_2_or_later
+ bool
+ default n
+
config CC_GCC_4_3_or_later
bool
default n
+ select CC_GCC_4_2_or_later
select CC_GCC_USE_GMP_MPFR
config CC_GCC_4_4_or_later
bool
default n
select CC_GCC_4_3_or_later
+ select CC_GCC_4_2_or_later
select CC_GCC_USE_PPL_CLOOG_MPC
config CC_GCC_USE_GMP_MPFR