summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-10 14:02:33 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-10 14:02:33 (GMT)
commit4f82a513ca1c99d763679a4d9a27ff6d2404ed88 (patch)
treec7cc4d812db3c354a6d327d4a18351e2e91ef9d3
parentc4b217dd1855db4c6ec192de847d22819d516e28 (diff)
downloadcpython-4f82a513ca1c99d763679a4d9a27ff6d2404ed88.zip
cpython-4f82a513ca1c99d763679a4d9a27ff6d2404ed88.tar.gz
cpython-4f82a513ca1c99d763679a4d9a27ff6d2404ed88.tar.bz2
Pick up Makefile variable BASECFLAGS too. This is needed since OPT was
split into OPT and BASECFLAGS (Makefile.pre.in rev. 1.108), because now there are essential CFLAGS in BASECFLAGS.
-rw-r--r--Lib/distutils/sysconfig.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index aa3636f..67353a8 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -146,8 +146,8 @@ def customize_compiler(compiler):
varies across Unices and is stored in Python's Makefile.
"""
if compiler.compiler_type == "unix":
- (cc, cxx, opt, ccshared, ldshared, so_ext) = \
- get_config_vars('CC', 'CXX', 'OPT', 'CCSHARED', 'LDSHARED', 'SO')
+ (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext) = \
+ get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO')
if os.environ.has_key('CC'):
cc = os.environ['CC']
@@ -159,6 +159,8 @@ def customize_compiler(compiler):
cpp = cc + " -E" # not always
if os.environ.has_key('LDFLAGS'):
ldshared = ldshared + ' ' + os.environ['LDFLAGS']
+ if basecflags:
+ opt = basecflags + ' ' + opt
if os.environ.has_key('CFLAGS'):
opt = opt + ' ' + os.environ['CFLAGS']
ldshared = ldshared + ' ' + os.environ['CFLAGS']