]> granicus.if.org Git - json-c/commit
build: make `strerror()` override-able
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 13 Jul 2017 07:11:15 +0000 (10:11 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 13 Jul 2017 07:27:24 +0000 (10:27 +0300)
commitfb72160cafc1e5f0aeb702ba76428a992b9e8792
tree0250b962098cb4bbbe4f66fdda465d01c4c71366
parent85f57859fd2ba20c7366f00e1fbaf94c4b264010
build: make `strerror()` override-able

If we want to override `strerror()` in libjson-c
to make tests consistent across platforms, we
need to do it build-wide as configure/build
option.

Apple linkers make it really hard to override functions
at link-time, and this seems to be locked down on travis-ci.org
[ for security reasons I assume ].
While I got it to work locally, it did not work
when running on travis.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Makefile.am
configure.ac
json_object.c
json_pointer.c
json_util.c
random_seed.c
strerror_override.c [moved from tests/strerror_override.c with 96% similarity]
strerror_override.h [new file with mode: 0644]
tests/Makefile.am
tests/test_json_pointer.c
tests/test_util_file.c