meson: add -lm to gstreamer-check-1.0 pkgconfig file
authorTim-Philipp Müller <tim@centricular.com>
Mon, 7 Aug 2017 09:33:32 +0000 (10:33 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 7 Aug 2017 09:34:13 +0000 (10:34 +0100)
Fixes warning with meson from git about LIBM not being
defined in the configuration_data.

pkgconfig/meson.build

index ae27ce3..23aa5d0 100644 (file)
@@ -6,6 +6,7 @@ pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
 pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
 pkgconf.set('GST_API_VERSION', apiversion)
 pkgconf.set('VERSION', gst_version)
+pkgconf.set('LIBM', mathlib.found() ? '-lm' : '')
 
 # Requires.private
 pkgconf.set('UNWIND_REQUIRE', cdata.has('HAVE_UNWIND') ? 'libunwind' : '')