Blame SOURCES/00168-distutils-cflags.patch

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