diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-07 23:54:24 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-07 23:54:24 +0000 |
commit | 4a22784700fe8fb81dc655a992332db1c2aa4d33 (patch) | |
tree | 3fd31c020b3318c7a578cfd62a10f6ac2fbc85d1 /gcc/config/linux.h | |
parent | ca08952d53523b4b8197db54a8b68743bd2539e1 (diff) | |
download | gcc-4a22784700fe8fb81dc655a992332db1c2aa4d33.tar.gz |
2001-06-07 Phil Edwards <pme@sources.redhat.com>
* cp/lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
* config/linux.h (CPLUSPLUS_CPP_SPEC): Move -D_GNU_SOURCE to here.
* config/pa/pa-linux.h: Allow CPLUSPLUS_CPP_SPEC to remain.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r-- | gcc/config/linux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h index 1a69758010a..62186ef79b2 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -75,6 +75,13 @@ Boston, MA 02111-1307, USA. */ #define CC1_SPEC "%{profile:-p}" #endif +/* The GNU C++ standard library requires that these macros be + defined. */ +#undef CPLUSPLUS_CPP_SPEC +#define CPLUSPLUS_CPP_SPEC \ + "-D_GNU_SOURCE \ + %(cpp_cpu)" + #ifndef USE_GNULIBC_1 #undef DEFAULT_VTABLE_THUNKS #define DEFAULT_VTABLE_THUNKS 1 |