From 133b0b8322249cb7ac5c27650cfac968c1284cf6 Mon Sep 17 00:00:00 2001 From: Tyler Erickson Date: Wed, 22 Jul 2026 14:01:59 -0600 Subject: [PATCH] make: Fixing missing math dependency in non-Windows json-c builds with meson The -lm was missing in the pkgconfig file that was generated. This adds that similar to the CMake build system's output. Signed-off-by: Tyler Erickson Signed-off-by: Sam James --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 8775c62..cae8a08 100644 --- a/meson.build +++ b/meson.build @@ -265,6 +265,10 @@ endif # Include directories inc = include_directories('.') +# Math library (needed for INFINITY, isnan, etc.) +m_dep = cc.find_library('m', required: false) +libjson_deps += [m_dep] + # Build library libjson = library('json-c', sources,