Skip to content

Commit 1f18745

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile.pre.in

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

830830
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
831-
$(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); \
831+
$(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); \
832832

833833

834834
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)