diff --git a/daemon/meson.build b/daemon/meson.build index 25063b9..bbaaa94 100644 --- a/daemon/meson.build +++ b/daemon/meson.build @@ -32,7 +32,6 @@ x52d_sources = [ ] dep_threads = dependency('threads') -dep_math = dependency('m', required: false) # Sometimes not a separate library # Comm sources are compiled into x52d (same as Autotools); libx52dcomm is only for x52ctl. x52d_linkwith = [lib_libx52, lib_vkm, lib_libx52io] diff --git a/meson.build b/meson.build index 4c83d49..7124f00 100644 --- a/meson.build +++ b/meson.build @@ -93,6 +93,9 @@ endif add_project_arguments('-isystem', meson.current_source_dir() / 'sys', language: 'C') +# Sometimes libm is in standard library +dep_math = compiler.find_library('m', required: false) + ####################################################################### # Internal dependencies #######################################################################