]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115737: Correct libpython install name for macOS shared library builds. (gh-115750)
authorRussell Keith-Magee <russell@keith-magee.com>
Wed, 21 Feb 2024 09:11:04 +0000 (17:11 +0800)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2024 09:11:04 +0000 (04:11 -0500)
Makefile.pre.in
Misc/NEWS.d/next/Build/2024-02-21-11-58-30.gh-issue-115737.dpNl2T.rst [new file with mode: 0644]

index 66c4266b2f8f97be759ef67df20889e6e3569a14..8130921b633e530c214701769dd10a5a1dfad3ef 100644 (file)
@@ -869,7 +869,7 @@ libpython3.so:      libpython$(LDVERSION).so
        $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
 
 libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
-        $(CC) -dynamiclib $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
+        $(CC) -dynamiclib $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
 
 
 libpython$(VERSION).sl: $(LIBRARY_OBJS)
diff --git a/Misc/NEWS.d/next/Build/2024-02-21-11-58-30.gh-issue-115737.dpNl2T.rst b/Misc/NEWS.d/next/Build/2024-02-21-11-58-30.gh-issue-115737.dpNl2T.rst
new file mode 100644 (file)
index 0000000..112f652
--- /dev/null
@@ -0,0 +1,2 @@
+The install name for libPython is now correctly set for non-framework macOS
+builds.