mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
521d232154
Enable definition of "Use __cxa_atexit" for bare-metal systems, if the used libc does provide such a function. The libc configuration have to select LIBC_PROVIDES_CXA_ATEXIT. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
101 lines
2.4 KiB
Plaintext
101 lines
2.4 KiB
Plaintext
# C library options
|
|
|
|
menu "C-library"
|
|
|
|
config LIBC
|
|
string
|
|
|
|
config LIBC_VERSION
|
|
string
|
|
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.
|
|
|
|
source "config.gen/libc.in"
|
|
|
|
config LIBC_SUPPORT_THREADS_ANY
|
|
bool
|
|
|
|
config LIBC_SUPPORT_THREADS_NATIVE
|
|
bool
|
|
select LIBC_SUPPORT_THREADS_ANY
|
|
|
|
config LIBC_SUPPORT_THREADS_LT
|
|
bool
|
|
select LIBC_SUPPORT_THREADS_ANY
|
|
|
|
config LIBC_SUPPORT_THREADS_NONE
|
|
bool
|
|
|
|
config LIBC_PROVIDES_CXA_ATEXIT
|
|
bool
|
|
|
|
# C libraries should provide other values
|
|
config THREADS
|
|
string
|
|
default "none" if THREADS_NONE
|
|
|
|
if ! LIBC_none
|
|
|
|
comment "Common C library options"
|
|
|
|
choice
|
|
bool
|
|
prompt "Threading implementation to use:"
|
|
default THREADS_NATIVE if LIBC_SUPPORT_THREADS_NATIVE
|
|
default THREADS_THREADS_LT if LIBC_SUPPORT_THREADS_LT && ! LIBC_SUPPORT_THREADS_NATIVE
|
|
default THREADS_NONE if ! LIBC_SUPPORT_THREADS_ANY
|
|
|
|
config THREADS_NATIVE
|
|
bool
|
|
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; on Windows with
|
|
mingw, this is win32.
|
|
|
|
config THREADS_LT
|
|
bool
|
|
prompt "linuxthreads"
|
|
depends on LIBC_SUPPORT_THREADS_LT
|
|
|
|
config THREADS_NONE
|
|
bool
|
|
prompt "none"
|
|
depends on LIBC_SUPPORT_THREADS_NONE
|
|
|
|
endchoice
|
|
|
|
config LIBC_XLDD
|
|
bool
|
|
prompt "Install a cross ldd-like helper"
|
|
depends on SHARED_LIBS
|
|
depends on ! BARE_METAL
|
|
default y
|
|
help
|
|
Say 'Y' here if you want to have a ldd-like helper that
|
|
you can run on your build system, and that will (try to)
|
|
resolve shared libraries dependencies as if run on the
|
|
target.
|
|
|
|
Note that the cross-ldd helper is not a full replacement
|
|
for the native ldd. Please see the help, by running it
|
|
with '--help' for more explanations.
|
|
|
|
source "config.gen/libc.in.2"
|
|
|
|
endif # ! LIBC_none
|
|
|
|
endmenu
|