Blame SOURCES/00168-distutils-cflags.patch

23b3e9
diff -up Python-2.6.6/Lib/distutils/sysconfig.py.distutils-cflags Python-2.6.6/Lib/distutils/sysconfig.py
23b3e9
--- Python-2.6.6/Lib/distutils/sysconfig.py.distutils-cflags	2011-08-12 17:18:17.833091153 -0400
23b3e9
+++ Python-2.6.6/Lib/distutils/sysconfig.py	2011-08-12 17:18:27.449106938 -0400
23b3e9
@@ -187,7 +187,7 @@ def customize_compiler(compiler):
23b3e9
         if 'LDFLAGS' in os.environ:
23b3e9
             ldshared = ldshared + ' ' + os.environ['LDFLAGS']
23b3e9
         if 'CFLAGS' in os.environ:
23b3e9
-            cflags = opt + ' ' + os.environ['CFLAGS']
23b3e9
+            cflags = cflags + ' ' + os.environ['CFLAGS']
23b3e9
             ldshared = ldshared + ' ' + os.environ['CFLAGS']
23b3e9
         if 'CPPFLAGS' in os.environ:
23b3e9
             cpp = cpp + ' ' + os.environ['CPPFLAGS']