pkgconfig: don't put -DG_THREADS_MANDATORY into our pkg-config CFLAGS
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 29 Jan 2010 09:41:30 +0000 (09:41 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 30 Jan 2010 12:50:09 +0000 (12:50 +0000)
commit79d3f1a2c102fe0f0ee6a1f1980943528b46c5c3
tree9b29cf489b26fce074eeb3e0120f70f2ef715136
parent69c531784e2b220465df99848fc886bbebd666e5
pkgconfig: don't put -DG_THREADS_MANDATORY into our pkg-config CFLAGS

If we force -DG_THREADS_MANDATORY onto apps, then g_thread_supported()
will always evaluate to TRUE, so the typical thread initialisation
boilerplate code if (!g_thread_supported()) g_thread_init(NULL); will
no longer work, and the threading system not be initialised and us
printing a warning in gst_init. This may be fine in most cases, since
late initialisation is allowed and automatically done in g_type_init()
since GLib 2.23.2, but let's be cautious and only use this define when
compiling GStreamer itself.

See #608398.
pkgconfig/gstreamer-uninstalled.pc.in
pkgconfig/gstreamer.pc.in