Skip to content

Commit 906785c

Browse files
committed
Merged revisions 69889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69889 | matthias.klose | 2009-02-23 00:14:26 +0100 (Mo, 23 Feb 2009) | 2 lines - Link the shared python library with $(MODLIBS). ........
1 parent 929a723 commit 906785c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,18 +419,18 @@ $(LIBRARY): $(LIBRARY_OBJS)
419419

420420
libpython$(VERSION).so: $(LIBRARY_OBJS)
421421
if test $(INSTSONAME) != $(LDLIBRARY); then \
422-
$(LDSHARED) $(LDFLAGS) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
422+
$(LDSHARED) $(LDFLAGS) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
423423
$(LN) -f $(INSTSONAME) $@; \
424424
else \
425-
$(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
425+
$(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
426426
fi
427427

428428
libpython$(VERSION).dylib: $(LIBRARY_OBJS)
429429
$(CC) -dynamiclib -Wl,-single_module $(LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(VERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
430430

431431

432432
libpython$(VERSION).sl: $(LIBRARY_OBJS)
433-
$(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST)
433+
$(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST)
434434

435435
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
436436
# minimal framework (not including the Lib directory and such) in the current

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ Tools/Demos
479479
Build
480480
-----
481481

482+
- Link the shared python library with $(MODLIBS).
483+
482484
- Issue #5134: Silence compiler warnings when compiling sqlite with VC++.
483485

484486
- Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.

0 commit comments

Comments
 (0)