From 5cc0daae3e0cb8004f3c2ff0af0610da8eec7dd8 Mon Sep 17 00:00:00 2001 From: Elear Solutions Dev Date: Mon, 23 Apr 2018 10:17:19 +0000 Subject: [PATCH] added buildroot patches --- Makefile.am.inc | 2 +- configure.ac | 4 ++++ json-c.pc.in | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.am.inc b/Makefile.am.inc index fec591b..5eb461e 100644 --- a/Makefile.am.inc +++ b/Makefile.am.inc @@ -1,2 +1,2 @@ -AM_CFLAGS = -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT +AM_CFLAGS = -Wall -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -std=gnu99 -D_GNU_SOURCE -D_REENTRANT diff --git a/configure.ac b/configure.ac index 99660a4..2a14ccf 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,10 @@ AC_CHECK_DECLS([isinf], [], [], [[#include ]]) AC_CHECK_DECLS([_isnan], [], [], [[#include ]]) AC_CHECK_DECLS([_finite], [], [], [[#include ]]) +if test "$ac_cv_have_decl_isnan" = "yes" ; then + AC_TRY_LINK([#include ], [float f = 0.0; return isnan(f)], [], [LIBS="$LIBS -lm"]) +fi + #check if .section.gnu.warning accepts long strings (for __warn_references) AC_LANG_PUSH([C]) diff --git a/json-c.pc.in b/json-c.pc.in index 037739d..05bfbc8 100644 --- a/json-c.pc.in +++ b/json-c.pc.in @@ -6,6 +6,7 @@ includedir=@includedir@ Name: json-c Description: JSON implementation in C Version: @VERSION@ -Requires: +Requires: +Libs.private: @LIBS@ Libs: -L${libdir} -ljson-c Cflags: -I${includedir}/json-c