summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-11-22 21:00:25 -0800
committerTim-Philipp Müller <tim@centricular.com>2017-02-23 17:34:45 +0000
commit5896854c03bc850dfea94ec630ab3bcd97374390 (patch)
tree2d710628cf607acbf5924e73b210d3d1601f90d1
parent1e4a9d4d050e702232da3faecf918f437d002557 (diff)
downloadgstreamer-plugins-good-5896854c03bc850dfea94ec630ab3bcd97374390.tar.gz
meson: add libm to has_function checks
The functions from math.h may be implemented in libm. https://bugzilla.gnome.org/show_bug.cgi?id=774876
-rw-r--r--meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 524bac87f..9ed937dde 100644
--- a/meson.build
+++ b/meson.build
@@ -108,8 +108,10 @@ check_functions = [
# check token HAVE_WAVEFORM
]
+libm = cc.find_library('m', required : false)
+
foreach f : check_functions
- if cc.has_function(f.get(1), prefix : f.get(2))
+ if cc.has_function(f.get(1), prefix : f.get(2), dependencies : libm)
cdata.set(f.get(0), 1)
endif
endforeach
@@ -170,7 +172,6 @@ gsttag_dep = dependency('gstreamer-tag-1.0', version : gst_req,
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
fallback : ['gst-plugins-base', 'video_dep'])
-libm = cc.find_library('m', required : false)
zlib_dep = dependency('zlib')
bz2lib = cc.find_library('bz2', required : false)
gio_dep = dependency('gio-2.0', version : glib_req)