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

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