mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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
This commit is contained in:
parent
6df682c6f9
commit
d95ba51136
1 changed files with 3 additions and 2 deletions
|
@ -113,8 +113,10 @@ check_functions = [
|
||||||
# check token HAVE_WAVEFORM
|
# check token HAVE_WAVEFORM
|
||||||
]
|
]
|
||||||
|
|
||||||
|
libm = cc.find_library('m', required : false)
|
||||||
|
|
||||||
foreach f : check_functions
|
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)
|
cdata.set(f.get(0), 1)
|
||||||
endif
|
endif
|
||||||
endforeach
|
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,
|
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
|
||||||
fallback : ['gst-plugins-base', 'video_dep'])
|
fallback : ['gst-plugins-base', 'video_dep'])
|
||||||
|
|
||||||
libm = cc.find_library('m', required : false)
|
|
||||||
zlib_dep = dependency('zlib')
|
zlib_dep = dependency('zlib')
|
||||||
bz2lib = cc.find_library('bz2', required : false)
|
bz2lib = cc.find_library('bz2', required : false)
|
||||||
gio_dep = dependency('gio-2.0', version : glib_req)
|
gio_dep = dependency('gio-2.0', version : glib_req)
|
||||||
|
|
Loading…
Reference in a new issue