Kaydet (Commit) 7b9053a2 authored tarafından Ronald Oussoren's avatar Ronald Oussoren

MacOSX: fix rather dumb buglet that made it impossible to create extensions on

OSX 10.3 when using a binary distribution build on 10.4.
üst 6dd59f16
......@@ -512,7 +512,7 @@ def get_config_vars(*args):
for key in ('LDFLAGS', 'BASECFLAGS'):
flags = _config_vars[key]
flags = re.sub('-arch\s+\w+\s', ' ', flags)
flags = re.sub('-isysroot [^ \t]* ', ' ', flags)
flags = re.sub('-isysroot [^ \t]*', ' ', flags)
_config_vars[key] = flags
if args:
......
......@@ -78,7 +78,7 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
try:
index = compiler_so.index('-isysroot')
# Strip this argument and the next one:
del compiler_so[index:index+1]
del compiler_so[index:index+2]
except ValueError:
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment