--- Lib/distutils/util.py	2010-07-06 20:17:15.000000000 +0300
+++ Lib/distutils/util.py	2010-07-06 20:17:57.000000000 +0300
@@ -145,7 +145,7 @@
 
                 archs = re.findall('-arch\s+(\S+)', cflags)
                 archs.sort()
-                archs = tuple(archs)
+                archs = tuple(sorted(list(set(archs))))
 
                 if len(archs) == 1:
                     machine = archs[0]
