diff options
author | kan <kan@FreeBSD.org> | 2003-12-19 18:20:48 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-12-19 18:20:48 +0000 |
commit | 7827f445334f6261b4772915d4abe39d3c79c014 (patch) | |
tree | 5718852c541447211c05cf9b56f24caac7f163be | |
parent | 82c89aa43e48ba859b38d80e645b258e3ce6c145 (diff) | |
download | FreeBSD-src-7827f445334f6261b4772915d4abe39d3c79c014.zip FreeBSD-src-7827f445334f6261b4772915d4abe39d3c79c014.tar.gz |
Use __cxa_atexit, rather than atexit, to register C++ destructors for local
statics and global objects. This is essential for fully standards-compliant
handling of destructors, and requires __cxa_atexit in libc.
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/auto-host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/auto-host.h b/gnu/usr.bin/cc/cc_tools/auto-host.h index 175d72a..8649396 100644 --- a/gnu/usr.bin/cc/cc_tools/auto-host.h +++ b/gnu/usr.bin/cc/cc_tools/auto-host.h @@ -370,7 +370,7 @@ register C++ destructors for local statics and global objects. This is essential for fully standards-compliant handling of destructors, but requires __cxa_atexit in libc. */ -/* #undef DEFAULT_USE_CXA_ATEXIT */ +#define DEFAULT_USE_CXA_ATEXIT 1 /* Define if you want the C and C++ compilers to support multibyte character sets for source code. */ |