This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch/libsupc++]: Add CFLAGS, AM_CFLAGS to LTCOMPILE for C files
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 16 Mar 2003 12:15:26 +1100 (EST)
- Subject: [Patch/libsupc++]: Add CFLAGS, AM_CFLAGS to LTCOMPILE for C files
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 at users dot sourceforge dot 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.