From: Ronald Oussoren Date: Sun, 8 Oct 2006 17:50:26 +0000 (+0000) Subject: Backport of r52233 X-Git-Tag: v2.5.1c1~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beb82a3772150c02b69382dd40f5722887833d3a;p=python Backport of r52233 --- diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index c3b1e4ecfb..bf52a27474 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -509,7 +509,11 @@ def get_config_vars(*args): # 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)