mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Backport of r52233
This commit is contained in:
parent
138478ba26
commit
beb82a3772
1 changed files with 5 additions and 1 deletions
|
|
@ -509,7 +509,11 @@ def get_config_vars(*args):
|
||||||
# are in CFLAGS or LDFLAGS and remove them if they are.
|
# are in CFLAGS or LDFLAGS and remove them if they are.
|
||||||
# This is needed when building extensions on a 10.3 system
|
# This is needed when building extensions on a 10.3 system
|
||||||
# using a universal build of python.
|
# 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 = _config_vars[key]
|
||||||
flags = re.sub('-arch\s+\w+\s', ' ', flags)
|
flags = re.sub('-arch\s+\w+\s', ' ', flags)
|
||||||
flags = re.sub('-isysroot [^ \t]*', ' ', flags)
|
flags = re.sub('-isysroot [^ \t]*', ' ', flags)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue