Skip to content

Commit 70ed906

Browse files
committed
[3.12] pythongh-115737: Correct libpython install name for macOS shared library builds. (pythongh-115750)
1 parent 2049672 commit 70ed906

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎Makefile.pre.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ libpython3.so: libpython$(LDVERSION).so
832832
$(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
833833

834834
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
835-
$(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); \
835+
$(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); \
836836

837837

838838
libpython$(VERSION).sl: $(LIBRARY_OBJS)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The install name for libPython is now correctly set for non-framework macOS
2+
builds.

0 commit comments

Comments
 (0)