[Python-checkins] cpython (2.7): Issue #16848: python-config now returns proper --ldflags values for OS X

ned.deily python-checkins at python.org
Mon Mar 4 23:32:04 CET 2013


http://hg.python.org/cpython/rev/bab708624dc4
changeset:   82482:bab708624dc4
branch:      2.7
parent:      82478:21ded74b51fa
user:        Ned Deily <nad at acm.org>
date:        Mon Mar 04 14:31:04 2013 -0800
summary:
  Issue #16848: python-config now returns proper --ldflags values for OS X
framework builds.

files:
  Misc/NEWS             |  3 +++
  Misc/python-config.in |  3 ++-
  2 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -923,6 +923,9 @@
 
 - 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
 -----------
 
diff --git a/Misc/python-config.in b/Misc/python-config.in
--- a/Misc/python-config.in
+++ b/Misc/python-config.in
@@ -51,6 +51,7 @@
         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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list