Use -lwine for linking.
diff --git a/Make.rules.in b/Make.rules.in
index 32f5996..9e662aa 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -23,7 +23,7 @@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
XLIB = @X_PRE_LIBS@ @XLIB@ @X_EXTRA_LIBS@
-WINELIB = $(WINESTUB) $(TOPOBJDIR)/@LIB_TARGET@
+WINELIB = $(WINESTUB) -L$(TOPOBJDIR) -lwine
LIBS = @LIBS@
YACC = @YACC@
LEX = @LEX@
diff --git a/Makefile.in b/Makefile.in
index 2173af0..fdda26a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -153,7 +153,7 @@
lib: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET)
wine wine.sym: $(LIBSUBDIRS) $(X11SUBDIRS) $(LIB_TARGET) $(EMUSUBDIRS) dummy
- $(CC) -o wine $(EMUOBJS) $(LIB_TARGET) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
+ $(CC) -o wine $(EMUOBJS) $(ALT_LINK) $(LDOPTIONS) $(X_LIBS) $(XLIB) $(LIBS)
nm -n wine | grep -v _compiled >wine.sym
@echo "Wine build complete."
diff --git a/configure b/configure
index f401e62..76e9a49 100755
--- a/configure
+++ b/configure
@@ -563,7 +563,7 @@
MAIN_TARGET=emu
LIB_TARGET=libwine.a
-ALT_LINK=" "
+ALT_LINK="-L\$(TOPOBJDIR) -lwine"
TRACE_MSGS=yes # the TRACE() macro
DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
diff --git a/configure.in b/configure.in
index 1910639..040057f 100644
--- a/configure.in
+++ b/configure.in
@@ -15,7 +15,7 @@
dnl Default values
MAIN_TARGET=emu
LIB_TARGET=libwine.a
-ALT_LINK=" "
+ALT_LINK="-L\$(TOPOBJDIR) -lwine"
TRACE_MSGS=yes # the TRACE() macro
DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.