This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: G++ defining _GNU_SOURCE


Which reminds me...



r~


        * config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): New.
        (LIB_SPEC): Mirror config/linux.h version.

Index: linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/linux.h,v
retrieving revision 1.21.4.1
diff -c -p -d -r1.21.4.1 linux.h
*** linux.h	2001/05/13 07:10:07	1.21.4.1
--- linux.h	2001/06/09 00:35:59
*************** Boston, MA 02111-1307, USA.  */
*** 28,35 ****
  "-Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__ " \
  SUB_CPP_PREDEFINES
  
  #undef LIB_SPEC
! #define LIB_SPEC "%{pg:-lgmon} %{pg:-lc_p} %{!pg:-lc}"
  
  /* Show that we need a GP when profiling.  */
  #undef TARGET_PROFILING_NEEDS_GP
--- 28,42 ----
  "-Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__ " \
  SUB_CPP_PREDEFINES
  
+ /* The GNU C++ standard library requires that these macros be defined.  */
+ #undef CPLUSPLUS_CPP_SPEC
+ #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp_cpu)"
+ 
  #undef LIB_SPEC
! #define LIB_SPEC \
!   "%{shared: -lc} \
!    %{!shared: %{pthread:-lpthread} \
!               %{profile:-lc_p} %{!profile: -lc}}"
  
  /* Show that we need a GP when profiling.  */
  #undef TARGET_PROFILING_NEEDS_GP


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]