From e810f43512adf8be4049d1b3d010acf666f34c79 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 1 Apr 2026 14:12:51 -0700 Subject: [PATCH] fix linking with -lm --- daemon/meson.build | 1 - meson.build | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 #######################################################################