From 9b9d85fe4cbcfffe20a4e09781f25633df6ef36b Mon Sep 17 00:00:00 2001
From: Andriy Palamarchuk <apa3a@yahoo.com>
Date: Thu, 25 Jul 2002 23:55:29 +0000
Subject: [PATCH] winebuild searches libraries specified in -l parameter only
 in the library directories specified before in the -L parameter, but
 winemaker added -L parameter after -l.

---
 tools/winemaker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winemaker b/tools/winemaker
index dc252adf06f..eb5fecb6a4f 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -1912,7 +1912,7 @@ sub generate_project_files
       print FILEO "\t-\$(STRIP) \$(STRIPFLAGS) \$\@\n";
       print FILEO "\n";
       print FILEO "\$(${canon}_SPEC_SRCS:.spec=.spec.c): \$(${canon}_SPEC_SRCS) \$(${canon}_SPEC_SRCS:.spec=.tmp.o) \$(${canon}_RC_SRCS:.rc=.res)\n";
-      print FILEO "\t\$(LD_PATH) \$(WINEBUILD) -fPIC \$(${canon}_DLL_PATH) \$(${canon}_DLLS:%=-l%) \$(WINE_DLL_PATH) \$(${canon}_RC_SRCS:%.rc=-res %.res) -sym \$(${canon}_SPEC_SRCS:.spec=.tmp.o) -o \$\@ -spec \$(SRCDIR)/\$(${canon}_SPEC_SRCS)\n";
+      print FILEO "\t\$(LD_PATH) \$(WINEBUILD) -fPIC \$(${canon}_DLL_PATH) \$(WINE_DLL_PATH) \$(${canon}_DLLS:%=-l%) \$(${canon}_RC_SRCS:%.rc=-res %.res) -sym \$(${canon}_SPEC_SRCS:.spec=.tmp.o) -o \$\@ -spec \$(SRCDIR)/\$(${canon}_SPEC_SRCS)\n";
       print FILEO "\n";
       my $t_name=@$target[$T_NAME];
       if (@$target[$T_TYPE]!=$TT_DLL) {