Skip to content

Commit

Permalink
Merge pull request #148 from jasmin-j/fix_147
Browse files Browse the repository at this point in the history
Use __cxa_atexit for bare-metal systems, if the used libc provides such a function.
  • Loading branch information
bhundven committed Sep 5, 2015
2 parents f4bfca0 + 521d232 commit c01a5f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/cc/gcc.in.2
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions config/libc.in
Expand Up @@ -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
Expand Down

0 comments on commit c01a5f0

Please sign in to comment.