]> granicus.if.org Git - python/commitdiff
SF patch 659809, by Daniel Brotsky: fix Makefile.pre to use config
authorGuido van Rossum <guido@python.org>
Mon, 30 Dec 2002 21:04:23 +0000 (21:04 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 30 Dec 2002 21:04:23 +0000 (21:04 +0000)
env.

This adds @CFLAGS@  and @CPPFLAGS@ to the end of the respective
variable definitions.  It also adds $(LDFLAGS) to the $(CC) invocation
to build $(PGEN).

Makefile.pre.in
Misc/NEWS

index 251b8203f6c1406865ee2f70ceb5b7842c6920d4..794e641f74a420fcbdcd889485173bd9ae9f8e4e 100644 (file)
@@ -54,8 +54,8 @@ MAKESETUP=      $(srcdir)/Modules/makesetup
 
 # Compiler options
 OPT=           @OPT@
-CFLAGS=                $(OPT)
-CPPFLAGS=      -I. -I$(srcdir)/Include
+CFLAGS=                $(OPT) @CFLAGS@
+CPPFLAGS=      -I. -I$(srcdir)/Include @CPPFLAGS@
 LDFLAGS=       @LDFLAGS@
 LDLAST=                @LDLAST@
 SGI_ABI=       @SGI_ABI@
@@ -427,7 +427,7 @@ $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
                -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
 
 $(PGEN):       $(PGENOBJS)
-               $(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
+               $(CC) $(OPT) $(PGENOBJS) $(LDFLAGS) $(LIBS) -o $(PGEN)
 
 Parser/grammar.o:      $(srcdir)/Parser/grammar.c \
                                $(srcdir)/Include/token.h \
index a04cf6ebeebe50ee05653c9aacff92bcae47080b..0be3da7e61eadd993158c86427e51d0a5c344df6 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -741,6 +741,9 @@ Tools/Demos
 Build
 -----
 
+- Makefile.pre.in now adds @CFLAGS@ and @CPPFLAGS@ to their respective
+  variable definitions.
+
 - On Unix, IDLE is now installed automatically.
 
 - The fpectl module is not built by default; it's dangerous or useless