diff Misc/python-config.in @ 78264:2d4f290ea71c 3.2

Issue #14197: For OS X framework builds, ensure links to the shared library are created with the proper ABI suffix.
author Ned Deily <nad@acm.org>
date Tue, 24 Jul 2012 03:31:48 -0700
parents 82b083c96a39
children 8f91014c8f00 ddf15cd9be4a
line wrap: on
line diff
--- a/Misc/python-config.in	Mon Jul 23 18:42:37 2012 +0200
+++ b/Misc/python-config.in	Tue Jul 24 03:31:48 2012 -0700
@@ -52,7 +52,8 @@
         if opt == '--ldflags':
             if not getvar('Py_ENABLE_SHARED'):
                 libs.insert(0, '-L' + getvar('LIBPL'))
-            libs.extend(getvar('LINKFORSHARED').split())
+            if not getvar('PYTHONFRAMEWORK'):
+                libs.extend(getvar('LINKFORSHARED').split())
         print(' '.join(libs))
 
     elif opt == '--extension-suffix':