churchyard / rpms / python2

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