From: Ned Deily Date: Mon, 4 Mar 2013 22:31:04 +0000 (-0800) Subject: Issue #16848: python-config now returns proper --ldflags values for OS X X-Git-Tag: v2.7.4rc1~64^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eec152d21783b901efae86afde771995fb357136;p=thirdparty%2FPython%2Fcpython.git Issue #16848: python-config now returns proper --ldflags values for OS X framework builds. --- diff --git a/Misc/NEWS b/Misc/NEWS index 15af7665d3a9..588a5c640255 100644 --- 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 ----------- diff --git a/Misc/python-config.in b/Misc/python-config.in index 552bbd55fe56..ca9857a89be2 100644 --- a/Misc/python-config.in +++ b/Misc/python-config.in @@ -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)