summaryrefslogtreecommitdiffstats
path: root/Misc/python-config.in
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-07-24 10:31:48 (GMT)
committerNed Deily <nad@acm.org>2012-07-24 10:31:48 (GMT)
commitecd4e9de5afab6a5d75a6fa7ebfb62804ba69264 (patch)
treeac83e16c4246fc0467cbd0c3671b2b76f3f41814 /Misc/python-config.in
parent55624da8a81887e8d03f6cd496cbf92f3a6011a5 (diff)
downloadcpython-ecd4e9de5afab6a5d75a6fa7ebfb62804ba69264.zip
cpython-ecd4e9de5afab6a5d75a6fa7ebfb62804ba69264.tar.gz
cpython-ecd4e9de5afab6a5d75a6fa7ebfb62804ba69264.tar.bz2
Issue #14197: For OS X framework builds, ensure links to the shared
library are created with the proper ABI suffix.
Diffstat (limited to 'Misc/python-config.in')
-rw-r--r--Misc/python-config.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Misc/python-config.in b/Misc/python-config.in
index 1d4a81d..79f0bb1 100644
--- a/Misc/python-config.in
+++ b/Misc/python-config.in
@@ -52,7 +52,8 @@ 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))
elif opt == '--extension-suffix':