From 812ce393e7bb3a31b6f834c86055da2edcb15b45 Mon Sep 17 00:00:00 2001 From: amiya-elear <45192994+amiya-elear@users.noreply.github.com> Date: Tue, 30 Jul 2019 19:52:58 +0530 Subject: [PATCH] add conanfile.py --- conanfile.py | 5 ++--- configure.ac | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/conanfile.py b/conanfile.py index d7b7fab..70900b7 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,12 +1,11 @@ -from conans import ConanFile, AutoToolsBuildEnvironment, tools +from conans import ConanFile, AutoToolsBuildEnvironment class JsonclibConan(ConanFile): name = "json-c" - version = "0.1" license = "" author = " " url = "" - description = "" + description = "This recipe file used to build and package binaries of json-c repository" topics = ("", "", "") settings = "os", "compiler", "build_type", "arch" options = { "shared": [True, False] } diff --git a/configure.ac b/configure.ac index 46c37dc..6d3c34b 100644 --- a/configure.ac +++ b/configure.ac @@ -165,7 +165,7 @@ AS_IF([test "x$enable_Bsymbolic" = "xcheck"], AS_IF([test "x$enable_Bsymbolic" = "xyes"], [JSON_BSYMBOLIC_LDFLAGS=-Wl[,]-Bsymbolic-functions]) AC_SUBST(JSON_BSYMBOLIC_LDFLAGS) -AX_APPEND_COMPILE_FLAGS([-Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations]) +AX_APPEND_COMPILE_FLAGS([-Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations -fPIC]) AX_APPEND_COMPILE_FLAGS([-Wextra -Wwrite-string -Wno-unused-parameter]) AX_APPEND_COMPILE_FLAGS([-D_GNU_SOURCE])