mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-libs/libfastjson: link to libm
Closes: https://bugs.gentoo.org/961289 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
dc6f96f6c5
commit
a0de88f077
24
dev-libs/libfastjson/files/libfastjson-1.2304.0-lm.patch
Normal file
24
dev-libs/libfastjson/files/libfastjson-1.2304.0-lm.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 919f7d204291047182a042ef8f76d70fefb11c2f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Deutschmann <whissi@whissi.de>
|
||||
Date: Sun, 10 Aug 2025 00:18:31 +0200
|
||||
Subject: [PATCH] build: link libfastjson against libm for modf()
|
||||
|
||||
glibc-2.42 changed modf causing IFUNC modf() resolution to fail at runtime
|
||||
in rsyslog due to missing direct link against libm.
|
||||
|
||||
Adding -lm to Libs ensures the shared library has a DT_NEEDED entry for libm.
|
||||
---
|
||||
libfastjson.pc.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libfastjson.pc.in b/libfastjson.pc.in
|
||||
index 7d3d375..c230c47 100644
|
||||
--- a/libfastjson.pc.in
|
||||
+++ b/libfastjson.pc.in
|
||||
@@ -8,5 +8,5 @@ Description: a fast JSON implementation in C
|
||||
Version: @VERSION@
|
||||
Requires:
|
||||
Libs.private: @LIBS@
|
||||
-Libs: -L${libdir} -lfastjson
|
||||
+Libs: -L${libdir} -lfastjson -lm
|
||||
Cflags: -I${includedir}/libfastjson
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -16,6 +16,8 @@ IUSE="static-libs"
|
||||
|
||||
BDEPEND=">=dev-build/autoconf-archive-2015.02.04"
|
||||
|
||||
PATCHES=( "${FILESDIR}/libfastjson-1.2304.0-lm.patch" )
|
||||
|
||||
DOCS=( AUTHORS ChangeLog )
|
||||
|
||||
src_prepare() {
|
||||
Loading…
x
Reference in New Issue
Block a user