From: Jose Bollo Date: Wed, 25 Jul 2018 13:45:01 +0000 (+0200) Subject: Improve pkgconfig setting X-Git-Tag: json-c-0.14-20200419~116^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F436%2Fhead;p=thirdparty%2Fjson-c.git Improve pkgconfig setting This changes allows to use #include instead of just #include This is normally possible but in some tricky case this usage is broken without this change. Here is the case that I encountered. I had to compile json-c fresh version for some investigations on newer versions. Then I installed it on my local environment using option --prefix. After that I had 2 versions: - the system wide version in usual locations /usr/lib and /usr/include - mine in my HOME directory Then, as I'm used to include , the included iheder's version was the system wide one whereas the linked lib was mine. Signed-off-by: Jose Bollo --- diff --git a/json-c.pc.in b/json-c.pc.in index 074378be..79d9a5e8 100644 --- a/json-c.pc.in +++ b/json-c.pc.in @@ -9,4 +9,4 @@ Version: @VERSION@ Requires: Libs.private: @LIBS@ Libs: -L${libdir} -ljson-c -Cflags: -I${includedir}/json-c +Cflags: -I${includedir} -I${includedir}/json-c