Debian Patches

Status for libfastjson/1.2304.0-3

Patch Description Author Forwarded Bugs Origin Last update
build-Use-AC_CHECK_LIB-to-ensure-libfastjson-links-agains.patch build: Use AC_CHECK_LIB to ensure libfastjson links against libm
glibc ≥ 2.42 no longer provides modf() through implicit linkage, so any
library using modf() must explicitly link libm. The previous approach
conditionally added -lm only if isnan() failed to link, which is no
longer sufficient and did not guarantee that libfastjson itself linked
against libm.

Replace the isnan-based conditional check with an explicit
AC_CHECK_LIB([m], [modf]) so that -lm is always added when required.
This ensures libfastjson links directly against libm, allowing dependent
applications to link only against libfastjson without needing to add -lm
themselves.
Thomas Deutschmann <whissi@whissi.de> no 2025-12-05

All known versions for source package 'libfastjson'

Links