Browse Source

added buildroot patches

pull/866/head
Elear Solutions Dev 7 years ago
parent
commit
5cc0daae3e
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      Makefile.am.inc
  2. +4
    -0
      configure.ac
  3. +2
    -1
      json-c.pc.in

+ 1
- 1
Makefile.am.inc View File

@@ -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


+ 4
- 0
configure.ac View File

@@ -50,6 +50,10 @@ AC_CHECK_DECLS([isinf], [], [], [[#include <math.h>]])
AC_CHECK_DECLS([_isnan], [], [], [[#include <float.h>]])
AC_CHECK_DECLS([_finite], [], [], [[#include <float.h>]])

if test "$ac_cv_have_decl_isnan" = "yes" ; then
AC_TRY_LINK([#include <math.h>], [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])



+ 2
- 1
json-c.pc.in View File

@@ -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

Loading…
Cancel
Save