summaryrefslogtreecommitdiff
path: root/config/libc.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-14 19:59:41 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-14 19:59:41 (GMT)
commit721da92158c37cd044ccccd3b37d1e8d0c183f39 (patch)
treefab407de0160b1a00f2426f9481e336feb8c3c3a /config/libc.in
parentae66018803112b86abb96109696ef2192870d6d5 (diff)
Move the whole threading ;odel choice out of glibc and into the generic C library options: even uClibc may have NPTL at one point in the (hopefully near) future.
Mark the progress bar as being CPU-intensive. Little style fix to the core C compiler build step.
Diffstat (limited to 'config/libc.in')
-rw-r--r--config/libc.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/config/libc.in b/config/libc.in
index ba6a1be..da86f1c 100644
--- a/config/libc.in
+++ b/config/libc.in
@@ -10,10 +10,13 @@ choice
config LIBC_GLIBC
bool
prompt "glibc"
+ select LIBC_SUPPORT_NPTL
+ select LIBC_SUPPORT_LINUXTHREADS
config LIBC_UCLIBC
bool
prompt "uClibc"
+ select LIBC_SUPPORT_LINUXTHREADS
endchoice
@@ -25,6 +28,39 @@ config LIBC
default "glibc" if LIBC_GLIBC
default "uClibc" if LIBC_UCLIBC
+config LIBC_SUPPORT_NPTL
+ bool
+ default n
+
+config LIBC_SUPPORT_LINUXTHREADS
+ bool
+ default n
+
+choice
+ bool
+ prompt "Threading implentation to use:"
+ default LIBC_THREADS_NPTL if LIBC_SUPPORT_NPTL
+ default LIBC_THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
+ default LIBC_THREADS_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
+ depends on EXPERIMENTAL
+
+config LIBC_THREADS_NPTL
+ bool
+ prompt "nptl (EXPERIMENTAL)"
+ depends on LIBC_SUPPORT_NPTL
+ depends on EXPERIMENTAL
+
+config LIBC_THREADS_LINUXTHREADS
+ bool
+ prompt "linuxthreads"
+ depends on LIBC_SUPPORT_LINUXTHREADS
+
+config LIBC_THREADS_NONE
+ bool
+ prompt "none"
+
+endchoice
+
if LIBC_GLIBC
source config/libc_glibc.in
endif