]> granicus.if.org Git - python/commitdiff
Issue #14197: For OS X framework builds, ensure links to the shared
authorNed Deily <nad@acm.org>
Tue, 24 Jul 2012 10:31:48 +0000 (03:31 -0700)
committerNed Deily <nad@acm.org>
Tue, 24 Jul 2012 10:31:48 +0000 (03:31 -0700)
library are created with the proper ABI suffix.

Makefile.pre.in
Misc/NEWS
Misc/python-config.in

index 9cc15c963e100a1e7cc58e23ccb08f794437434b..e5c2a3f301fe2c5d22f89501db6675de77ec55ef 100644 (file)
@@ -1158,8 +1158,11 @@ frameworkinstallstructure:       $(LDLIBRARY)
 # Install a number of symlinks to keep software that expects a normal unix
 # install (which includes python-config) happy.
 frameworkinstallmaclib:
+       ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(LDVERSION).a"
+       ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(LDVERSION).dylib"
        ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(VERSION).a"
        ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config-$(LDVERSION)/libpython$(VERSION).dylib"
+       ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(LDVERSION).dylib"
        ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
 
 # This installs the IDE, the Launcher and other apps into /Applications
index 539c905b45db71319c91f7f70e720f1b8a004c9e..0bc65821175f4820e9b0d0700862303c9c416f0a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -402,6 +402,9 @@ Tests
 Build
 -----
 
+- Issue #14197: For OS X framework builds, ensure links to the shared
+  library are created with the proper ABI suffix.
+
 - Issue #14472: Update .gitignore. Patch by Matej Cepl.
 
 - The Windows build now uses OpenSSL 1.0.0j and bzip2 1.0.6.
index 1d4a81d8502dfc36f7db15eab6a7220381e1853a..79f0bb14c1d9cff0ad1a06abaa8debc470bb8e6a 100644 (file)
@@ -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':