OSDN Git Service

* config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2001 21:35:06 +0000 (21:35 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2001 21:35:06 +0000 (21:35 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45866 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/sol2.h

index aaaaa30..3b5970c 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
+
 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
 
        Mostly from Graham Stott  <grahams@redhat.com>
index 4a18839..99f0497 100644 (file)
@@ -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} \