linux.h (CPLUSPLUS_CPP_SPEC): New.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Mon, 11 Jun 2001 19:39:06 +0000 (19:39 +0000)
committerFranz Sirl <sirl@gcc.gnu.org>
Mon, 11 Jun 2001 19:39:06 +0000 (19:39 +0000)
        2001-06-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New.

From-SVN: r43207

gcc/ChangeLog
gcc/config/rs6000/linux.h

index 15effda2d708d4342e9daba79d9a004288521788..ee5955e1a3cb3b3436cfd0b28f06870c4c6188de 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New.
+
 2001-06-11  Stan Shebs  <shebs@apple.com>
 
        * darwin.c (darwin_encode_section_info):  Rewrite to simplify
index 1518b5d5060436ea13f5243545c3ac6a6323bc00..6e06ecbd78107ef84ffff4c8626e98bc504ea264 100644 (file)
@@ -34,6 +34,12 @@ Boston, MA 02111-1307, USA.  */
 #undef CPP_OS_DEFAULT_SPEC
 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
 
+/* The GNU C++ standard library currently requires _GNU_SOURCE being
+   defined on glibc-based systems. This temporary hack accomplishes this,
+   it should go away as soon as libstdc++-v3 has a real fix.  */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
+
 #undef LINK_SHLIB_SPEC
 #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"