crosstool-ng/config/libc.in
Yann E. MORIN" 30481d01ce Move the threading model choice back to the C library menu:
- the threading models available are dependent on the C library used
 - it is thus easier to first select the C libary, and then the threading model, rather going back to the toolchain menu.

 /trunk/config/toolchain.in |   29     0    29     0 -----------------------------
 /trunk/config/libc.in      |   47    38     9     0 ++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 38 insertions(+), 38 deletions(-)
2008-08-21 09:48:00 +00:00

102 lines
2.1 KiB
Plaintext

# C library options
menu "C-library"
choice
bool
prompt "C-library to use:"
default LIBC_GLIBC
config LIBC_GLIBC
bool
prompt "glibc"
select LIBC_SUPPORT_NPTL
select LIBC_SUPPORT_LINUXTHREADS
if LIBC_GLIBC
source config/libc/glibc.in
endif
config LIBC_EGLIBC
bool
prompt "eglibc (EXPERIMENTAL)"
select LIBC_SUPPORT_NPTL
select LIBC_SUPPORT_LINUXTHREADS
depends on EXPERIMENTAL
if LIBC_EGLIBC
source config/libc/eglibc.in
endif
config LIBC_UCLIBC
bool
prompt "uClibc"
select LIBC_SUPPORT_LINUXTHREADS
if LIBC_UCLIBC
source config/libc/uClibc.in
endif
endchoice
config LIBC_VERSION
string
config LIBC
string
default "glibc" if LIBC_GLIBC
default "eglibc" if LIBC_EGLIBC
default "uClibc" if LIBC_UCLIBC
config LIBC_SUPPORT_NPTL
bool
default n
config LIBC_SUPPORT_LINUXTHREADS
bool
default n
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_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
config THREADS_NPTL
bool
prompt "nptl"
depends on LIBC_SUPPORT_NPTL
config THREADS_LINUXTHREADS
bool
prompt "linuxthreads"
depends on LIBC_SUPPORT_LINUXTHREADS
config THREADS_NONE
bool
prompt "none"
endchoice
config THREADS
string
default "nptl" if THREADS_NPTL
default "linuxthreads" if THREADS_LINUXTHREADS
default "none" if THREADS_NONE
config LIBC_VERSION
help
Enter the date of the snapshot you want to use in the form: YYYYMMDD
where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
day in the month.
Please note:
- glibc has snapshots done every monday, and only the last ten are kept.
- uClibc has daily snapshots, and only the last 30-or-so are kept.
So if you want to be able to re-build your toolchain later, you will
have to save your C library tarball by yourself.
endmenu