http://bugs.winehq.org/show_bug.cgi?id=28028
Summary: Build on OS X 10.7 requires CC=gcc-4.2 LDFLAGS='-Wl,-no_pie' Product: Wine Version: 1.3.22 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: per@morth.org
Apparently this is known at macports already, but couldn't find a bug here at winehq.org. When building on OS X 10.7 one have to pass CC=gcc-4.2 LDFLAGS='-Wl,-no_pie' to ./configure or wine will get a c0000005 exception during startup.
For the CC part, it's to prefer the full gcc over llvm-gcc which is now default. LDFLAGS='-Wl,-no_pie' is to turn off position independent code/address space randomization.
I guess both should be detected automatically.