]> granicus.if.org Git - json-c/commit
Issue #508: `-fPIC` to link libjson-c.a with libs
authorMicah Snyder <micasnyd@cisco.com>
Sun, 14 Jun 2020 16:01:48 +0000 (12:01 -0400)
committerMicah Snyder <micasnyd@cisco.com>
Sun, 14 Jun 2020 16:35:49 +0000 (12:35 -0400)
commit60494684a103f218503deb985631eae6331c31ec
tree40839c7969fe71935b6d2616dbb629ba9c5aff1f
parentbc06f82f8538498a68f81ddc17aaacf337e66be7
Issue #508: `-fPIC` to link libjson-c.a with libs

json-c has symbol collisions with other popular C JSON libraries.
To prevent random crashes in downstream applications that may use a
library which depends on json-c, the solution is to statically link
libjson-c.a into those libraries.

`-fPIC`/`-fPIE` is required when building a `.a` so it can be linked
into a `.so`.
CMakeLists.txt
README.md