fix linking with -lm

mouse-isometric-mode
nirenjan 2026-04-01 14:12:51 -07:00
parent 22ee7ed19f
commit e810f43512
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,6 @@ x52d_sources = [
] ]
dep_threads = dependency('threads') 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. # Comm sources are compiled into x52d (same as Autotools); libx52dcomm is only for x52ctl.
x52d_linkwith = [lib_libx52, lib_vkm, lib_libx52io] x52d_linkwith = [lib_libx52, lib_vkm, lib_libx52io]

View File

@ -93,6 +93,9 @@ endif
add_project_arguments('-isystem', meson.current_source_dir() / 'sys', language: 'C') 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 # Internal dependencies
####################################################################### #######################################################################