aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2001-09-28 21:35:06 +0000
committerRainer Orth <ro@gcc.gnu.org>2001-09-28 21:35:06 +0000
commit5bc108773768215e0b4aa22298fc54bd52e8dd1c (patch)
treef4ac1943db71e42a7d229bd3c64ba150abdde1f5
parentc20d89f553ce2e2a7295f6819d90969fada06ed9 (diff)
downloadgcc-5bc108773768215e0b4aa22298fc54bd52e8dd1c.zip
gcc-5bc108773768215e0b4aa22298fc54bd52e8dd1c.tar.gz
gcc-5bc108773768215e0b4aa22298fc54bd52e8dd1c.tar.bz2
* config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
From-SVN: r45866
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/sol2.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aaaaa30..3b5970c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 4a18839..99f0497 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} \