[pypy-commit] pypy default: respect CFLAGS when installing stuff with distutils.
alex_gaynor
noreply at buildbot.pypy.org
Fri Jul 22 00:13:08 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r45846:7203ebd350a7
Date: 2011-07-21 15:13 -0700
http://bitbucket.org/pypy/pypy/changeset/7203ebd350a7/
Log: respect CFLAGS when installing stuff with distutils.
diff --git a/lib-python/modified-2.7/distutils/sysconfig_pypy.py b/lib-python/modified-2.7/distutils/sysconfig_pypy.py
--- a/lib-python/modified-2.7/distutils/sysconfig_pypy.py
+++ b/lib-python/modified-2.7/distutils/sysconfig_pypy.py
@@ -116,6 +116,12 @@
if compiler.compiler_type == "unix":
compiler.compiler_so.extend(['-fPIC', '-Wimplicit'])
compiler.shared_lib_extension = get_config_var('SO')
+ if "CFLAGS" in os.environ:
+ cflags = os.environ["CFLAGS"]
+ compiler.compiler.append(cflags)
+ compiler.compiler_so.append(cflags)
+ compiler.linker_so.append(cflags)
+
from sysconfig_cpython import (
parse_makefile, _variable_rx, expand_makefile_vars)
More information about the pypy-commit
mailing list