This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]