http://bugs.winehq.org/show_bug.cgi?id=30557
--- Comment #82 from Mikael Åkersund mikael.akersund@bigfoot.com 2013-10-12 13:18:33 CDT --- (In reply to comment #75) (In reply to comment #81)
(In reply to comment #80)
Created attachment 46268 [details] wine output.tar.gz
Uhm...
patching file loader/Makefile.in Hunk #1 FAILED at 33. 1 out of 1 hunk FAILED -- saving rejects to file loader/Makefile.in.rej
That means that unless you've manually modified the file, it didn't get patched (and the later error suggests you didn't).
loader/Makefile.in changed in 1.7.4 so you need to add -ldl or @LIBDL@ to EXTRALIBS instead.
Change the start of loader/Makefile.in to MODCFLAGS = @BUILTINFLAG@ EXTRALIBS = @LIBPTHREAD@ -ldl