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

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