diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-02-10 16:38:35 +0300 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-02-11 16:18:14 +0300 |
commit | 58cb4cf005b24e177ed8cf4a01bfbdf87b3b5b4d (patch) | |
tree | f8d317fb28774c9c9ac9a71c5195045f856728a2 /examples | |
parent | 6f9f3391b6dfd3771ee0dd1ea22e427691de57ec (diff) |
dav1dplay: Add -lm for llround() support
Neither --buildtype=plain nor --buildtype=debug set -ffast-math, so
llround() is kept as a function call and isn’t optimised out into
cvttsd2siq (on amd64), thus requiring the math lib to be linked.
Note that even with -ffast-math, it isn’t guaranteed that a call to
llround() will always be omitted (I have reproduced this on PowerPC), so
this fix is correct even if we ever decide to enable -ffast-math in
other build types.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/meson.build b/examples/meson.build index 9bca088..124c956 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -43,7 +43,7 @@ dav1dplay_sources = files( sdl2_dependency = dependency('sdl2', version: '>= 2.0.1', required: true) if sdl2_dependency.found() - dav1dplay_deps = [sdl2_dependency] + dav1dplay_deps = [sdl2_dependency, libm_dependency] dav1dplay_cflags = [] placebo_dependency = dependency('libplacebo', version: '>= 3.110.0', required: false) |