From: Scott D Phillips Date: Wed, 23 Nov 2016 05:00:25 +0000 (-0800) Subject: meson: add libm to has_function checks X-Git-Tag: 1.19.3~509^2~2376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d95ba51136d9d875a7701cc1e566beb6825bc22c;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/meson.build b/meson.build index 97be0f0..dc90261c 100644 --- a/meson.build +++ b/meson.build @@ -113,8 +113,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 @@ -175,7 +177,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)