Set the dll search path to the location specified in configure (spotted by Vincent Béron).
diff --git a/tools/winegcc/Makefile.in b/tools/winegcc/Makefile.in index 4aedb58..f9792da 100644 --- a/tools/winegcc/Makefile.in +++ b/tools/winegcc/Makefile.in
@@ -1,4 +1,4 @@ -DEFS = -DINCLUDEDIR="\"$(includedir)\"" +DEFS = -DINCLUDEDIR="\"$(includedir)\"" -DDLLDIR="\"$(dlldir)\"" TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@
diff --git a/tools/winegcc/winewrap.c b/tools/winegcc/winewrap.c index 6f3ca9d..87e2644 100644 --- a/tools/winegcc/winewrap.c +++ b/tools/winegcc/winewrap.c
@@ -31,10 +31,6 @@ #include "utils.h" -#ifndef WINEDLLS -#define WINEDLLS "/usr/local/lib/wine" -#endif - static const char *app_loader_script = "#!/bin/sh\n" "\n" @@ -439,8 +435,8 @@ obj_files = strarray_alloc(); /* include the standard DLL path first */ - add_lib_path(WINEDLLS); - + add_lib_path(DLLDIR); + for (i = 1; i < argc; i++) { if (!no_opt && argv[i][0] == '-')