https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- (In reply to Rafał Mużyło from comment #3)
I suspect the correct question here is: would you check output of 'pkg-config --cflags glib-2.0' ?
That new part comes likely from glib being built with sysprof support (more exactly - being linked with sysprof-capture static lib (as that lib is static only)).
This would have likely affected gstreamer too, but the relevant macro in configure.ac filters that out.
There's no need; the failure is due to freetype CFLAGS, not glib (which we don't even link to), and config.log already shows that they contain -pthread.
It's a makedep bug, but not immediately clear to me how it should be fixed.