diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-30 13:56:42 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-30 13:57:57 +0000 |
commit | 96dc7930768997da39cd1e6b80485bc69b421601 (patch) | |
tree | 0eeac8997b68fbc1aec713c4cefecf49e7f71e45 | |
parent | 15d47a6bedef727075895311282d9f5f5186b49d (diff) |
gst-glib2.m4: add -DG_THREADS_MANDATORY to GLIB_CFLAGS
Threading is always enabled in GStreamer code, so we may just as well
add -DG_THREADS_MANDATORY to GLIB_CFLAGS so that all GStreamer modules
are automatically compiled with it (optimisation).
-rw-r--r-- | m4/gst-glib2.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/gst-glib2.m4 b/m4/gst-glib2.m4 index 3060e5e..7b03874 100644 --- a/m4/gst-glib2.m4 +++ b/m4/gst-glib2.m4 @@ -20,6 +20,11 @@ AC_DEFUN([AG_GST_GLIB_CHECK], AC_MSG_ERROR([This package requires GLib >= $GLIB_REQ to compile.]) fi + dnl Add define to tell GLib that threading is always enabled within GStreamer + dnl code (optimisation, bypasses checks if the threading system is enabled + dnl when using threading primitives) + GLIB_CFLAGS="$GLIB_CFLAGS -DG_THREADS_MANDATORY" + dnl for the poor souls who for example have glib in /usr/local AS_SCRUB_INCLUDE(GLIB_CFLAGS) ]) |