From: Rainer Orth Date: Fri, 28 Sep 2001 21:35:06 +0000 (+0000) Subject: * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bc108773768215e0b4aa22298fc54bd52e8dd1c;p=gcc.git * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define. From-SVN: r45866 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aaaaa30da1c..3b5970c0a95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-09-28 Rainer Orth + + * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define. + 2001-09-25 Bernd Schmidt Mostly from Graham Stott diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 4a1883913ee..99f04974be7 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -83,6 +83,14 @@ Boston, MA 02111-1307, USA. */ %{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \ %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}" +/* For C++ we need to add some additional macro definitions required + by the C++ standard library. */ +#define CPLUSPLUS_CPP_SPEC "\ +-D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \ +-D__EXTENSIONS__ \ +%(cpp) \ +" + #undef LIB_SPEC #define LIB_SPEC \ "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \