mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessor
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
This commit is contained in:
parent
f4b33f61fb
commit
89e90d67aa
7 changed files with 19 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue