Blame SOURCES/00178-dont-duplicate-flags-in-sysconfig.patch

8dc7a2
diff -r 39b9b05c3085 Lib/distutils/sysconfig.py
8dc7a2
--- a/Lib/distutils/sysconfig.py	Wed Apr 10 00:27:23 2013 +0200
8dc7a2
+++ b/Lib/distutils/sysconfig.py	Wed Apr 10 10:14:18 2013 +0200
8dc7a2
@@ -362,7 +362,10 @@
8dc7a2
                     done[n] = item = ""
8dc7a2
                 if found:
8dc7a2
                     after = value[m.end():]
8dc7a2
-                    value = value[:m.start()] + item + after
8dc7a2
+                    value = value[:m.start()]
8dc7a2
+                    if item.strip() not in value:
8dc7a2
+                        value += item
8dc7a2
+                    value += after
8dc7a2
                     if "$" in after:
8dc7a2
                         notdone[name] = value
8dc7a2
                     else:
8dc7a2
diff -r 39b9b05c3085 Lib/sysconfig.py
8dc7a2
--- a/Lib/sysconfig.py	Wed Apr 10 00:27:23 2013 +0200
8dc7a2
+++ b/Lib/sysconfig.py	Wed Apr 10 10:14:18 2013 +0200
8dc7a2
@@ -296,7 +296,10 @@
8dc7a2
 
8dc7a2
                 if found:
8dc7a2
                     after = value[m.end():]
8dc7a2
-                    value = value[:m.start()] + item + after
8dc7a2
+                    value = value[:m.start()]
8dc7a2
+                    if item.strip() not in value:
8dc7a2
+                        value += item
8dc7a2
+                    value += after
8dc7a2
                     if "$" in after:
8dc7a2
                         notdone[name] = value
8dc7a2
                     else: