https://bugs.winehq.org/show_bug.cgi?id=30639
--- Comment #51 from Ruslan Kabatsayev b7.10110111@gmail.com --- (In reply to Andrew Eikum from comment #50)
How are you building it? It sets -O2 for me, not sure what it keys that off of. In any case, it's an autotools thing, check configure and config.log output.
I always built it with CFLAGS=-g set as environment variable. Maybe this overwrites the default -O2 instead of appending -g to the flags.