summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-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: