Skip to content

Commit 691648f

Browse files
freakboy3742diegorusso
authored andcommitted
pythongh-115737: Correct libpython install name for macOS shared library builds. (pythongh-115750)
1 parent 3df8eac commit 691648f

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