[Bug 774876] meson: add libm to has_function checks

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Nov 23 23:02:16 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774876

--- Comment #4 from Scott D Phillips <scott.d.phillips at intel.com> ---
(In reply to Sebastian Dröge (slomo) from comment #2)
> The same will also be required in other modules then, right?

For whatever reason I only saw the problem in this repo, but yes I guess it
make sense to keep everything consistent.

(In reply to Nirbheek Chauhan from comment #3)
> Review of attachment 340553 [details] [review]:
> 
> Makes sense. But are you sure that clang requires `-lm` for math functions?
> IIRC clang was trying to do away with a separate libm library in favour of
> putting everything inside libc? If so, please push.

It seems that meson's has_function check always checks for
'__builtin_'+function if the function itself can't be found normally. The c99
math stuff exists in gcc as __builtin_asinh (for example), but that builtin
isn't there in clang. I'm not familiar with an effort to get rid of libm from
clang. Absent that, I think that this is the right change.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list