]> git.ipfire.org Git - thirdparty/zstd.git/commit
meson: never require a libm
authorEli Schwartz <eschwartz@archlinux.org>
Mon, 31 Jan 2022 02:02:44 +0000 (21:02 -0500)
committerEli Schwartz <eschwartz@archlinux.org>
Mon, 31 Jan 2022 02:50:42 +0000 (21:50 -0500)
commit84c05453db61a5c518bda486ea36b0c00fc645a1
tree9a75c8ae59fae9ce95dde99fc78b88e3375a1aa2
parent5b2c6c776acadcd86247fdaa3e48c11c6848263e
meson: never require a libm

libm is not guaranteed to exist. POSIX requires the math functions to
exist, but doesn't require to have it be a standalone library.

On platforms where libm exists as a standalone library, it will always
be found by meson -- it is shipped with libc.

If it is not found, then we can safely assume the linker will make the
math functions available by default.

See https://mesonbuild.com/howtox.html#add-math-library-lm-portably

Fixes building with bin_tests=true on Windows.
build/meson/meson.build