]> granicus.if.org Git - python/commitdiff
Apply patch for issue 3090: ARCHFLAGS parsing incorrect
authorJesse Noller <jnoller@gmail.com>
Wed, 16 Jul 2008 13:24:06 +0000 (13:24 +0000)
committerJesse Noller <jnoller@gmail.com>
Wed, 16 Jul 2008 13:24:06 +0000 (13:24 +0000)
Lib/distutils/unixccompiler.py

index 6144efc070fbb7be1c5f921f9a34aeafa1ff3e43..045368a925d7204b5d7a6fc2129be47789dd080f 100644 (file)
@@ -76,8 +76,7 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
     if 'ARCHFLAGS' in os.environ and not stripArch:
         # User specified different -arch flags in the environ,
         # see also distutils.sysconfig
-        compiler_so = compiler_so + ' ' + os.environ['ARCHFLAGS']
-
+        compiler_so = compiler_so + os.environ['ARCHFLAGS'].split()
 
     if stripSysroot:
         try: