[Patch/libsupc++]: Add CFLAGS, AM_CFLAGS to LTCOMPILE for C files

Danny Smith danny_r_smith_2001@yahoo.co.nz
Sun Mar 16 01:15:00 GMT 2003


The LTCOMPILE rule definition for the two libiberty C demangler files
in libsupc++ (GCC-3_3-branch) doesn't honour CFLAGS or AM_CFLAGS.

Following corrects for 3_3-branch. so that optimized/debug code for these 
files can be generated.

The LTCOMPILE define is also missing these flags on trunk.
However, it makes no difference there now because of movement of
functionality to src/demangle.cc.  Should it be changed there anyway or
should LTCOMPILE and C_COMPILE just be be removed?

Danny
 
2003-03-15  Danny Smith  <dannysmith@users.sourceforge.net>

	* libsupc++/Makefile.am (LTCOMPILE): Add $(AM_CFLAGS) $(CFLAGS).
	* libsupc++/Makefile.in: Regenerate.


Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/Makefile.am,v
retrieving revision 1.36.2.3
diff -c -3 -p -r1.36.2.3 Makefile.am
*** Makefile.am	7 Mar 2003 07:15:06 -0000	1.36.2.3
--- Makefile.am	16 Mar 2003 00:29:47 -0000
*************** dyn-string.o: dyn-string.c
*** 127,133 ****
  # LTCOMPILE is copied from LTCXXCOMPILE below.
  LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared --mode=compile $(CC) \
  	    $(DEFS) $(GCC_INCLUDES) $(LIBSUPCXX_PICFLAGS) \
!             $(AM_CPPFLAGS) $(CPPFLAGS) 
  
  
  # AM_CXXFLAGS needs to be in each subdirectory so that it can be
--- 127,133 ----
  # LTCOMPILE is copied from LTCXXCOMPILE below.
  LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared --mode=compile $(CC) \
  	    $(DEFS) $(GCC_INCLUDES) $(LIBSUPCXX_PICFLAGS) \
!             $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  
  
  # AM_CXXFLAGS needs to be in each subdirectory so that it can be

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.



More information about the Libstdc++ mailing list