bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFLAGS, YFLAGS makefile patches for Bison


From: Paul Eggert
Subject: CFLAGS, YFLAGS makefile patches for Bison
Date: Fri, 4 Oct 2002 21:57:13 -0700 (PDT)

Automake 1.7 found problems with CFLAGS; I installed this patch.

2002-10-04  Paul Eggert  <address@hidden>

        The GNU coding standard says CFLAGS and YFLAGS are reserved
        for the installer to set.
        * lib/Makefile.am (AM_CFLAGS): Renamed from CFLAGS.
        * src/Makefile.am (AM_CFLAGS): Likewise.
        (AM_YFLAGS): Renamed from YFLAGS.

Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/bison/bison/lib/Makefile.am,v
retrieving revision 1.30
diff -p -u -r1.30 Makefile.am
--- lib/Makefile.am     27 Sep 2002 13:03:32 -0000      1.30
+++ lib/Makefile.am     5 Oct 2002 04:24:05 -0000
@@ -17,7 +17,7 @@
 
 AUTOMAKE_OPTIONS = ansi2knr
 
-CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
+AM_CFLAGS = $(WARNING_CFLAGS)
 
 noinst_LIBRARIES = libbison.a
 
cvs server: Diffing m4
cvs server: Diffing po
cvs server: Diffing src
Index: src/Makefile.am
===================================================================
RCS file: /cvsroot/bison/bison/src/Makefile.am,v
retrieving revision 1.52
diff -p -u -r1.52 Makefile.am
--- src/Makefile.am     12 Aug 2002 14:33:54 -0000      1.52
+++ src/Makefile.am     5 Oct 2002 04:24:05 -0000
@@ -21,8 +21,8 @@ DEFS = @DEFS@ \
   -DPKGDATADIR=\"$(pkgdatadir)\" \
   -DLOCALEDIR=\"$(datadir)/locale\"
 
-CFLAGS = @CFLAGS@ $(WARNING_CFLAGS) $(WERROR_CFLAGS)
-YFLAGS = "-dv"
+AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
+AM_YFLAGS = "-dv"
 
 # config.h is in build/.
 INCLUDES = -I$(top_builddir)      \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]