mirror of
https://github.com/json-c/json-c.git
synced 2026-03-18 20:49:07 +08:00
In certain C libraries (e.g uClibc), isnan() and related functions are implemented in libm, so json-c needs to link against it. This commit therefore adds an AC_TRY_LINK() test to check whether a program calling isnan() can be properly linked with no special flags. If not, we assume linking against libm is needed. The json-c.pc.in file is also adjusted so that in the case of static linking against json-c, -lm is also used. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 lines
243 B
PkgConfig
13 lines
243 B
PkgConfig
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
libdir=@libdir@
|
|
includedir=@includedir@
|
|
|
|
Name: json-c
|
|
Description: JSON implementation in C
|
|
Version: @VERSION@
|
|
Requires:
|
|
Libs.private: @LIBS@
|
|
Libs: -L${libdir} -ljson-c
|
|
Cflags: -I${includedir}/json-c
|