mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Merge pull request #148 from jasmin-j/fix_147
Use __cxa_atexit for bare-metal systems, if the used libc provides such a function.
This commit is contained in:
commit
c01a5f08bc
@ -165,7 +165,7 @@ config CC_CXA_ATEXIT
|
||||
bool
|
||||
prompt "Use __cxa_atexit"
|
||||
default y
|
||||
depends on ! BARE_METAL
|
||||
depends on ! BARE_METAL || LIBC_PROVIDES_CXA_ATEXIT
|
||||
help
|
||||
If you get the missing symbol "__cxa_atexit" when building C++ programs,
|
||||
you might want to try disabling this option.
|
||||
|
@ -35,6 +35,9 @@ config LIBC_SUPPORT_THREADS_LT
|
||||
config LIBC_SUPPORT_THREADS_NONE
|
||||
bool
|
||||
|
||||
config LIBC_PROVIDES_CXA_ATEXIT
|
||||
bool
|
||||
|
||||
# C libraries should provide other values
|
||||
config THREADS
|
||||
string
|
||||
|
Loading…
Reference in New Issue
Block a user