Skip to content

Commit 913d4b8

Browse files
committed
[3.10] pythongh-115737: Correct libpython install name for macOS shared library builds. (pythongh-115750)
1 parent 8a460d5 commit 913d4b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile.pre.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ libpython3.so: libpython$(LDVERSION).so
655655
$(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
656656

657657
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
658-
$(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); \
658+
$(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); \
659659

660660

661661
libpython$(VERSION).sl: $(LIBRARY_OBJS)
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)