From 437558e818b8beecea2c89ac7f718d0835dc1ea7 Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Mon, 11 Jun 2001 19:39:06 +0000 Subject: [PATCH] linux.h (CPLUSPLUS_CPP_SPEC): New. 2001-06-11 Franz Sirl * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New. From-SVN: r43207 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/linux.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 15effda2d70..ee5955e1a3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-06-11 Franz Sirl + + * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New. + 2001-06-11 Stan Shebs * darwin.c (darwin_encode_section_info): Rewrite to simplify diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index 1518b5d5060..6e06ecbd781 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -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}}" -- 2.30.2