Index: Lib/distutils/unixccompiler.py =================================================================== --- Lib/distutils/unixccompiler.py (revision 64165) +++ Lib/distutils/unixccompiler.py (working copy) @@ -76,9 +76,8 @@ 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: index = compiler_so.index('-isysroot')