libfastjson: add missing runtime dependency on libm
authormicpf <redacted>
Wed, 15 Apr 2026 16:30:17 +0000 (18:30 +0200)
committerHannu Nyman <redacted>
Sat, 2 May 2026 15:11:36 +0000 (18:11 +0300)
libfastjson uses modf() from libm but does not declare the dependency.
With BIND_NOW (CONFIG_PKG_RELRO_FULL), this can cause the dynamic linker
to process libfastjson's relocations before libm's GOT is set up,
triggering a crash in libm's IFUNC resolver on PowerPC.

Fixes: https://github.com/openwrt/packages/issues/29160
Signed-off-by: micpf <redacted>
libs/libfastjson/Makefile

index 9cbcc00ad099854336a9061880084dd39dfeefea..51a80284f81bfa06fd71d09d45a1290de2fd8029 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libfastjson
 PKG_VERSION:=1.2304.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.rsyslog.com/libfastjson
@@ -29,6 +29,7 @@ define Package/libfastjson
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=A fast JSON library for C
+  DEPENDS:=+USE_GLIBC:libm
   URL:=https://github.com/rsyslog/libfastjson
 endef
 
git clone https://git.99rst.org/PROJECT