patches/gcc/3.3/sh-predef-gnu_source.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.3/sh-predef-gnu_source.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,15 @@
     1.4 +See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
     1.5 +and http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00424.html
     1.6 +
     1.7 +--- gcc-3.3/gcc/config/sh/linux.h.old	Wed Jun  4 17:37:40 2003
     1.8 ++++ gcc-3.3/gcc/config/sh/linux.h	Wed Jun  4 17:38:16 2003
     1.9 +@@ -53,5 +53,9 @@
    1.10 +    %{static:-static}"
    1.11 + 
    1.12 ++/* The GNU C++ standard library requires that these macros be defined.  */
    1.13 ++#undef CPLUSPLUS_CPP_SPEC
    1.14 ++#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
    1.15 ++
    1.16 + #undef LIB_SPEC
    1.17 + #define LIB_SPEC \
    1.18 +   "%{shared: -lc} \