diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-04-25 07:14:03 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-04-25 07:14:03 +0000 |
commit | d7c795e72966f7c72b94b919f3539be66495e6c3 (patch) | |
tree | a2cea19622186e95faeb32553e1635d185ad8d4c /setup.py | |
parent | 08cd598c2145d00f1517c93cabf80a5d7d2a4bc0 (diff) | |
download | cpython-git-d7c795e72966f7c72b94b919f3539be66495e6c3.tar.gz |
Make parse_makefile fallback to environment variables if nothing is
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -171,8 +171,8 @@ class PyBuildExt(build_ext): # unfortunately, distutils doesn't let us provide separate C and C++ # compilers if compiler is not None: - (ccshared,opt,base) = sysconfig.get_config_vars('CCSHARED','OPT','BASECFLAGS') - args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared + ' ' + base + (ccshared,cflags) = sysconfig.get_config_vars('CCSHARED','CFLAGS') + args['compiler_so'] = compiler + ' ' + ccshared + ' ' + cflags self.compiler.set_executables(**args) build_ext.build_extensions(self) |