summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-06-02 06:16:02 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-06-02 06:16:02 (GMT)
commit89e90d67aa73163b368f0dc42ed78310bda00ac5 (patch)
treebb7ad7331037051274914dabd6d4231ff396f8f2 /Misc
parentf4b33f61fb83f54d3086ef28c34e71a18ade2b9d (diff)
downloadcpython-89e90d67aa73163b368f0dc42ed78310bda00ac5.zip
cpython-89e90d67aa73163b368f0dc42ed78310bda00ac5.tar.gz
cpython-89e90d67aa73163b368f0dc42ed78310bda00ac5.tar.bz2
Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessor
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/Makefile.pre.in b/Misc/Makefile.pre.in
index 2d14294..01b4901 100644
--- a/Misc/Makefile.pre.in
+++ b/Misc/Makefile.pre.in
@@ -95,7 +95,8 @@ TARGET= python
PYTHON= python
# Add more -I and -D options here
-CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
+CFLAGS= $(OPT)
+CPPFLAGS= -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
# These two variables can be set in Setup to merge extensions.
# See example[23].
@@ -228,7 +229,7 @@ do-it-again:
# Make config.o from the config.c created by makesetup
config.o: config.c
- $(CC) $(CFLAGS) -c config.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c config.c
# Setup is copied from Setup.in *only* if it doesn't yet exist
Setup: