diff options
author | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-11 19:39:06 +0000 |
---|---|---|
committer | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-11 19:39:06 +0000 |
commit | e3167824e58e332bc24f704e70c05729a939f5cf (patch) | |
tree | 40c75e35e97a1af6f23b92b390a89c422f610e36 /gcc/config | |
parent | 457683de3c7050acb3c8bccfacb76440695b3658 (diff) | |
download | gcc-e3167824e58e332bc24f704e70c05729a939f5cf.tar.gz |
2001-06-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/linux.h | 6 |
1 files changed, 6 insertions, 0 deletions
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}}" |