[PATCH] Small convenience patch to src/Makefile.am

Raja R Harinath harinath@cs.umn.edu
Mon Jun 19 14:49:00 GMT 2000


Hi,

It would be very useful to apply the following patch to
src/Makefile.am:

  Index: src/Makefile.am
  ===================================================================
  RCS file: /cvs/gcc/egcs/libstdc++-v3/src/Makefile.am,v
  retrieving revision 1.16
  diff -u -p -u -r1.16 Makefile.am
  --- Makefile.am 2000/06/19 03:14:40     1.16
  +++ Makefile.am 2000/06/19 21:43:48
  @@ -45,7 +45,7 @@ EXTRA_LTLIBRARIES = libinst-string.la li
   # or configure.in to see how they are set.
   # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
   AC_CXXFLAGS = \
  -       @WERROR@ @WFMT_FLAGS@ @CPU_FLAGS@ @EXTRA_CXX_FLAGS@ \
  +       $(WERROR) @WFMT_FLAGS@ @CPU_FLAGS@ @EXTRA_CXX_FLAGS@ \
          @SECTION_FLAGS@ @SECTION_LDFLAGS@ @DEBUG_FLAGS@ 

   # Need to manually set this option because AC_CXXFLAGS has to be at

This doesn't change regular behaviour, but allow us to use

  $ make WERROR=

for the occasional case when we don't want to pass -Werror to the
compiler.  This used to work before, but doesn't now because of the
hardcoding of AC_CXXFLAGS to always include -Werror.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


More information about the Libstdc++ mailing list