mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +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
|
|
@ -15,7 +15,8 @@ VERSION= 2.1
|
|||
# Compiler flags
|
||||
OPT= -g
|
||||
INCLUDES= -I$(srcdir)/Include -I$(blddir)
|
||||
CFLAGS= $(OPT) $(INCLUDES)
|
||||
CFLAGS= $(OPT)
|
||||
CPPFLAGS= $(INCLUDES)
|
||||
|
||||
# The Python library
|
||||
LIBPYTHON= $(blddir)/libpython$(VERSION).a
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ RLLIBS=-lreadline -ltermcap
|
|||
OTHERLIBS=-lnsl -lpthread -ldl -lm -ldb -lutil
|
||||
|
||||
# Compilation and link flags -- no need to change normally
|
||||
CFLAGS=$(PYINCL) $(OPT)
|
||||
CFLAGS=$(OPT)
|
||||
CPPFLAGS=$(PYINCL)
|
||||
LIBS=$(PYLIBS) $(RLLIBS) $(OTHERLIBS)
|
||||
|
||||
# Default port for the pysvr application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue