Skip to content

Commit 074bbec

Browse files
authored
gh-115737: Correct libpython install name for macOS shared library builds. (gh-115750)
1 parent 10fc467 commit 074bbec

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
@@ -869,7 +869,7 @@ libpython3.so: libpython$(LDVERSION).so
869869
$(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
870870

871871
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
872-
$(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); \
872+
$(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); \
873873

874874

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