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