Issue #16848: python-config now returns proper --ldflags values for OS X
authorNed Deily <nad@acm.org>
Mon, 4 Mar 2013 22:31:04 +0000 (14:31 -0800)
committerNed Deily <nad@acm.org>
Mon, 4 Mar 2013 22:31:04 +0000 (14:31 -0800)
framework builds.

Misc/NEWS
Misc/python-config.in

index 15af7665d3a93f51e853de4fafe62ceb2eb6f3c9..588a5c640255074a2e002572c9c0e902986f5dee 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -923,6 +923,9 @@ Build
 
 - Issue #17161: make install now also installs a python2 and python man page.
 
+- Issue #16848: python-config now returns proper --ldflags values for OS X
+  framework builds.
+
 Tools/Demos
 -----------
 
index 552bbd55fe56b1d06350b03195ec8bf289560005..ca9857a89be22e89d8d70ca931d817098b987071 100644 (file)
@@ -51,6 +51,7 @@ for opt in opt_flags:
         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)