X Tutup
Skip to content

Commit ecd4e9d

Browse files
committed
Issue python#14197: For OS X framework builds, ensure links to the shared
library are created with the proper ABI suffix.
1 parent 55624da commit ecd4e9d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Makefile.pre.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,11 @@ frameworkinstallstructure: $(LDLIBRARY)
11581158
# Install a number of symlinks to keep software that expects a normal unix
11591159
# install (which includes python-config) happy.
11601160
frameworkinstallmaclib:
1161+
ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(LDVERSION).a"
1162+
ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(LDVERSION).dylib"
11611163
ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(VERSION).a"
11621164
ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(VERSION).dylib"
1165+
ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(LDVERSION).dylib"
11631166
ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
11641167

11651168
# This installs the IDE, the Launcher and other apps into /Applications

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ Tests
402402
Build
403403
-----
404404

405+
- Issue #14197: For OS X framework builds, ensure links to the shared
406+
library are created with the proper ABI suffix.
407+
405408
- Issue #14472: Update .gitignore. Patch by Matej Cepl.
406409

407410
- The Windows build now uses OpenSSL 1.0.0j and bzip2 1.0.6.

Misc/python-config.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ for opt in opt_flags:
5252
if opt == '--ldflags':
5353
if not getvar('Py_ENABLE_SHARED'):
5454
libs.insert(0, '-L' + getvar('LIBPL'))
55-
libs.extend(getvar('LINKFORSHARED').split())
55+
if not getvar('PYTHONFRAMEWORK'):
56+
libs.extend(getvar('LINKFORSHARED').split())
5657
print(' '.join(libs))
5758

5859
elif opt == '--extension-suffix':

0 commit comments

Comments
 (0)
X Tutup