[Python-checkins] r52234 - python/branches/release25-maint/Lib/distutils/sysconfig.py
ronald.oussoren
python-checkins at python.org
Sun Oct 8 19:50:26 CEST 2006
Author: ronald.oussoren
Date: Sun Oct 8 19:50:26 2006
New Revision: 52234
Modified:
python/branches/release25-maint/Lib/distutils/sysconfig.py
Log:
Backport of r52233
Modified: python/branches/release25-maint/Lib/distutils/sysconfig.py
==============================================================================
--- python/branches/release25-maint/Lib/distutils/sysconfig.py (original)
+++ python/branches/release25-maint/Lib/distutils/sysconfig.py Sun Oct 8 19:50:26 2006
@@ -509,7 +509,11 @@
# are in CFLAGS or LDFLAGS and remove them if they are.
# This is needed when building extensions on a 10.3 system
# using a universal build of python.
- for key in ('LDFLAGS', 'BASECFLAGS'):
+ for key in ('LDFLAGS', 'BASECFLAGS',
+ # a number of derived variables. These need to be
+ # patched up as well.
+ 'CFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
+
flags = _config_vars[key]
flags = re.sub('-arch\s+\w+\s', ' ', flags)
flags = re.sub('-isysroot [^ \t]*', ' ', flags)
More information about the Python-checkins
mailing list