http://bugs.winehq.org/show_bug.cgi?id=6714
------- Additional Comments From mail@science.su 2006-17-11 00:59 ------- Accordingly to the following post on the wine-devel mailing list:
"I saw a few others say that this worked around the problem, so I rebooted and added noexec=off ... I still get the segfault running wine from make." (Lee Harr)
...This bug is not duplicate of 6622 bug because 6622 only appears with noexec=on. I checked this again and everything works fine for me with NX protection enabled and with vanilla Wine 0.9.23 without "Mark the stack as executable if possible" patch. That means this bug has nothing to do with NX protection.
------------
For latest wine your example works fine for me (I have NoExec enabled and tested this with Wine 0.9.23 (without patches) and latest Wine from git-tree (with some patches but they shouldn't affect result in this case). For example I can create tmp.mak with the following content:
all: [TAB]wine notepad
Then I run "make -f tmp.mak" and everything works fine. Running wine alone of course also works perfectly.
What versions of make you have? How you compiled Wine, what compiler you are using and what version of your compiler? What version of your libc?