Blame SOURCES/python-2.7.2-add-extension-suffix-to-python-config.patch

72be67
diff -up Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config Python-2.7.2/Misc/python-config.in
72be67
--- Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config	2011-08-23 18:15:41.832497124 -0400
72be67
+++ Python-2.7.2/Misc/python-config.in	2011-08-23 18:17:25.854490011 -0400
72be67
@@ -6,7 +6,7 @@ import getopt
72be67
 from distutils import sysconfig
72be67
 
72be67
 valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
72be67
-              'ldflags', 'help']
72be67
+              'ldflags', 'extension-suffix', 'help']
72be67
 
72be67
 def exit_with_usage(code=1):
72be67
     print >>sys.stderr, "Usage: %s [%s]" % (sys.argv[0],
72be67
@@ -54,3 +54,5 @@ for opt in opt_flags:
72be67
                 libs.extend(getvar('LINKFORSHARED').split())
72be67
         print ' '.join(libs)
72be67
 
72be67
+    elif opt == '--extension-suffix':
72be67
+        print (sys.pydebug and "_d" or "") + sysconfig.get_config_var('SO')