This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Questions about --enable-__cxa_atexit
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 23 Jan 2006 21:23:20 +0100
- Subject: Questions about --enable-__cxa_atexit
Hi,
http://gcc.gnu.org/install/configure.html mentions:
--enable-__cxa_atexit
Define if you want to 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, but requires __cxa_atexit in libc. This option is
currently only available on systems with GNU libc. When enabled,
this will cause -fuse-cxa-exit to be passed by default.
Is there any reason why this is not detected automatically by configure?
If I build C++ on x86-linux should I add this option?
Thanks in advance,
Laurent