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

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