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>
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
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A fast JSON library for C
+ DEPENDS:=+USE_GLIBC:libm
URL:=https://github.com/rsyslog/libfastjson
endef