http://bugs.winehq.org/show_bug.cgi?id=22053
--- Comment #27 from Mateusz Stachowski mateusz.stachowski@wp.pl 2012-02-26 16:05:06 CST --- I have the same version of gcc 4.6.1 ($ gcc --version gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1) and I've compiled wine-1.4-rc5 with and without additional flags.
The version compiled without flags doesn't work with Steam in-game overlay, but the second one works. I've used those flags:
CFLAGS="-O3 -pipe -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections -maccumulate-outgoing-args -mno-push-args -freorder-blocks-and-partition" LDFLAGS="-s"
This means that the gcc bug is still present, because the old gcc 4.5 ($ gcc-4.5 --version gcc-4.5 (Ubuntu/Linaro 4.5.3-9ubuntu1) 4.5.4) doesn't need any extra flags for working overlay.