libfastjson: add missing runtime dependency on libm

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 <micpf@westermo.com>
This commit is contained in:
micpf
2026-04-15 18:30:17 +02:00
committed by Hannu Nyman
parent 81f0ef48e1
commit d114f46db1
+2 -1
View 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