summaryrefslogtreecommitdiff
path: root/Modules/makesetup
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2010-07-09 16:30:58 +0000
committerJeffrey Yasskin <jyasskin@gmail.com>2010-07-09 16:30:58 +0000
commitd4fcdb1ea847389f0cc62840d59d0701f33bbf3d (patch)
tree4aa78e816c9dd0575f1f9aec33eeb4e36c3c571b /Modules/makesetup
parent74e4561a3cdf9d38caca4573b68e1c72fc489629 (diff)
downloadcpython-git-d4fcdb1ea847389f0cc62840d59d0701f33bbf3d.tar.gz
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.
Diffstat (limited to 'Modules/makesetup')
-rwxr-xr-xModules/makesetup2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/makesetup b/Modules/makesetup
index 23f778d07b..40dfa9db48 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -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