http://bugs.winehq.org/show_bug.cgi?id=9020
Summary: Wine (server) crashes at startup when it's compiled with custom LDFLAGS Product: Wine Version: CVS Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com
Recently I began compiling my applications with new LDFLAGS which improve applications' start-up time and size. Unfortunately these LDFLAGS make wine segfault at running any application (even with built-ins like notepad or regedit).
In order to use these LDFLAGS you have to have installed recent binutils (Linux distro Fedora 7 is sufficient) - I have binutils 2.17.50.0.12.
So, these are the LD flags to blame: export LDFLAGS="-Wl,-O1 -s -Wl,--hash-style=gnu -Wl,-Bsymbolic -Wl,-Bsymbolic-functions -Wl,--enable-new-dtags"
"-Wl,-O1" and "-s" options seem to be safe, I suppose wine doesn't like some of "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions -Wl,--enable-new-dtags" options.
That would be great if Wine build system put all CFLAGS and LDFLAGS in one file (instead of putting them into each Makefile), so that I could re-link all the wine tree by changing the only string in a build file.