summaryrefslogtreecommitdiffstats
path: root/Modules/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-18 23:55:32 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-18 23:55:32 (GMT)
commit3c4bb802d08cbce3edd7ede3746debeb6b2418ca (patch)
tree1b8b92ed2328175ae92bbda2fba573941105fb77 /Modules/Makefile.pre.in
parent8f4ceb168c34cc3a23d90f97b328697251c45585 (diff)
downloadcpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.zip
cpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.tar.gz
cpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.tar.bz2
Patch by Brian Gallew for DG/UX. I'm not quite sure what it does but
it seems harmless for other platforms. It plays tricks with the name of the library used to link with. Apparently DG/UX really wants a shared library to link with if it wants shared modules to use symbols from the library. I'm not sure why this wasn't an issue with 1.4; DG/UX seems to be the only platform where moving to a single library made things harder! BTW This adds a target to create libpython$(VERSION).so; however this target is *only* for DG/UX.
Diffstat (limited to 'Modules/Makefile.pre.in')
-rw-r--r--Modules/Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 7bc1d63..91c73f1 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -100,6 +100,7 @@ MAINOBJ= python.o
SYSLIBS= $(LIBM) $(LIBC)
LIBRARY= ../libpython$(VERSION).a
+REALLIBRARY= ../@REALLIBRARY@
# === Rules ===
@@ -130,8 +131,8 @@ EXE=
# This target is used by the master Makefile to link the final binary.
link: $(MAINOBJ)
- $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(MAINOBJ) \
- $(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
+ $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
+ -L.. -lpython$(VERSION) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
mv python$(EXE) ../python$(EXE)
clean: