]> git.ipfire.org Git - thirdparty/json-c.git/commit
Improve pkgconfig setting 436/head
authorJose Bollo <jose.bollo@iot.bzh>
Wed, 25 Jul 2018 13:45:01 +0000 (15:45 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Wed, 25 Jul 2018 13:51:02 +0000 (15:51 +0200)
commitd189d7b5ff63685d169c314e929f7f9a5d80cf1a
treebdbb68a8edf637f35e3b5c9bc59455613e04b103
parent2327b23d8e9111ad7d0df7452546c611c0e7ad7e
Improve pkgconfig setting

This changes allows to use #include <json-c/json.h>
instead of just #include <json.h>

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 <json-c/json.h>, the
included iheder's version was the system wide one
whereas the linked lib was mine.

Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
json-c.pc.in