Skip to content

Commit 24e7150

Browse files
committed
Revert "build: link libfastjson against libm for modf()"
Pull Request rsyslog#167 modified libfastjson.pc to add an explicit dependency on -lm through pkg-config. While this worked around missing modf() resolution under glibc ≥ 2.42, it pushed the responsibility onto applications. The correct solution is for libfastjson itself to link against libm so that dependent applications do not need to adjust their linker flags. This commit removes the pkg-config modifications introduced by commit 919f7d2.
1 parent f1983a8 commit 24e7150

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libfastjson.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Description: a fast JSON implementation in C
88
Version: @VERSION@
99
Requires:
1010
Libs.private: @LIBS@
11-
Libs: -L${libdir} -lfastjson -lm
11+
Libs: -L${libdir} -lfastjson
1212
Cflags: -I${includedir}/libfastjson

0 commit comments

Comments
 (0)