From: micpf Date: Wed, 15 Apr 2026 16:30:17 +0000 (+0200) Subject: libfastjson: add missing runtime dependency on libm X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d114f46db11ad1639d9b8c59489182ab9583c092;p=openwrt-packages.git 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 --- diff --git a/libs/libfastjson/Makefile b/libs/libfastjson/Makefile index 9cbcc00ad..51a80284f 100644 --- a/libs/libfastjson/Makefile +++ b/libs/libfastjson/Makefile @@ -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