summaryrefslogtreecommitdiff
path: root/config/libc.in
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-07-27 21:47:24 (GMT)
committerYann E. MORIN <yann.morin.1998@free.fr>2014-07-27 23:23:34 (GMT)
commitb1f536966b8cae68098d94dbe372fa5054440adb (patch)
tree491b2045d51efe79c3cff442ea532aca68dd522f /config/libc.in
parent85622fdd499e48deaab5a37484aa4f6f83520d94 (diff)
libc: rename the threads options
Use a more coherent naming for the options. This will help commonalise the native case (e.g. NPTL on Linux, win32 on Windows), and add alternate implementations (e.g. musl.) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'config/libc.in')
-rw-r--r--config/libc.in37
1 files changed, 21 insertions, 16 deletions
diff --git a/config/libc.in b/config/libc.in
index 03f5db2..240a01e 100644
--- a/config/libc.in
+++ b/config/libc.in
@@ -24,15 +24,15 @@ source "config.gen/libc.in"
config LIBC_SUPPORT_THREADS_ANY
bool
-config LIBC_SUPPORT_NPTL
+config LIBC_SUPPORT_THREADS_NATIVE
bool
select LIBC_SUPPORT_THREADS_ANY
-config LIBC_SUPPORT_LINUXTHREADS
+config LIBC_SUPPORT_THREADS_LT
bool
select LIBC_SUPPORT_THREADS_ANY
-config LIBC_SUPPORT_WIN32THREADS
+config LIBC_SUPPORT_THREADS_WIN32
bool
select LIBC_SUPPORT_THREADS_ANY
@@ -41,9 +41,9 @@ config LIBC_SUPPORT_THREADS_NONE
config THREADS
string
- default "nptl" if THREADS_NPTL
- default "linuxthreads" if THREADS_LINUXTHREADS
- default "win32" if THREADS_WIN32THREADS
+ default "nptl" if THREADS_NATIVE
+ default "linuxthreads" if THREADS_LT
+ default "win32" if THREADS_WIN32
default "none" if THREADS_NONE || LIBC_none
# No C library, no threads!
@@ -54,25 +54,30 @@ comment "Common C library options"
choice
bool
prompt "Threading implementation to use:"
- default THREADS_NPTL if LIBC_SUPPORT_NPTL
- default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
- default THREADS_WIN32 if LIBC_SUPPORT_WIN32THREADS
+ default THREADS_NATIVE if LIBC_SUPPORT_THREADS_NATIVE
+ default THREADS_THREADS_LT if LIBC_SUPPORT_THREADS_LT && ! LIBC_SUPPORT_THREADS_NATIVE
+ default THREADS_WIN32 if LIBC_SUPPORT_THREADS_WIN32
default THREADS_NONE if ! LIBC_SUPPORT_THREADS_ANY
-config THREADS_NPTL
+config THREADS_NATIVE
bool
- prompt "nptl"
- depends on LIBC_SUPPORT_NPTL
+ prompt "native"
+ depends on LIBC_SUPPORT_THREADS_NATIVE
+ help
+ This selects the native threads implementation for the selected
+ system and C library.
+
+ For example, on Linux with glibc, this is NPTL.
-config THREADS_LINUXTHREADS
+config THREADS_LT
bool
prompt "linuxthreads"
- depends on LIBC_SUPPORT_LINUXTHREADS
+ depends on LIBC_SUPPORT_THREADS_LT
-config THREADS_WIN32THREADS
+config THREADS_WIN32
bool
prompt "win32"
- depends on LIBC_SUPPORT_WIN32THREADS
+ depends on LIBC_SUPPORT_THREADS_WIN32
config THREADS_NONE
bool