libstdc++-v3 configure question
Mark Mitchell
mark@codesourcery.com
Thu Apr 19 14:32:00 GMT 2001
>>>>> "Benjamin" == Benjamin Kosnik <bkoz@redhat.com> writes:
Benjamin> the third option, which seems to make the most sense, is
Benjamin> to have __STRICT_ANSI__ guards on all the discovered
Benjamin> bits in the v3 headers, so that -ansi on the compile
Benjamin> line will turn off all the non-standard bits in the
Benjamin> headers.
That might break things if any of the guarded things impact sizes of
types, mangled names, etc.
Also, some key things (like thread-safety functions) are typically
guarded in C library header files -- but we need to use them even with
-ansi.
I think you can only get this right by being in bed with the library
header files (when you could put the C stuff you need in some hidden
namespace when including it from the C++ library). On systems like
AIX and HPUX, I think the CPP_CPLUSPLUS_SPEC thing is about the best
you can do. :-(
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list