Skip to content

Commit 17e29a0

Browse files
Fix macOS dylib build by adding $(MODLIBS) and removing -undefined dynamic_lookup (GH-144942)
1 parent 97181bb commit 17e29a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile.pre.in

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

10321032
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
1033-
$(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); \
1033+
$(CC) -dynamiclib $(PY_CORE_LDFLAGS) -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
10341034

10351035

10361036
libpython$(VERSION).sl: $(LIBRARY_OBJS)

0 commit comments

Comments
 (0)