mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #9189: Allow users to set $CFLAGS, $CPPFLAGS, and $LDFLAGS when running
configure to append to Python's default values for those variables, and similarly allow users to set $XXFLAGS on the make command line to append to the values set by configure. In the makefile, this renames the variables that used to be $XXFLAGS to $PY_XXFLAGS, and renames the old $PY_CFLAGS to $PY_CORE_CFLAGS. To compensate, sysconfig now aliases $XXFLAGS=$PY_XXFLAGS so that scripts using it keep working. I see that as the right interface, not a backward-compatibility hack, since these are logically the $XXFLAGS variables; we just use a different name in the makefile to deal with make's semantics.
This commit is contained in:
parent
74e4561a3c
commit
d4fcdb1ea8
6 changed files with 53 additions and 38 deletions
|
@ -219,7 +219,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
case $doconfig in
|
||||
no) cc="$cc \$(CCSHARED) \$(CFLAGS) \$(CPPFLAGS)";;
|
||||
*)
|
||||
cc="$cc \$(PY_CFLAGS)";;
|
||||
cc="$cc \$(PY_CORE_CFLAGS)";;
|
||||
esac
|
||||
rule="$obj: $src; $cc $cpps -c $src -o $obj"
|
||||
echo "$rule" >>$rulesf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue