Skip to content

Make the usage of json-c and libxml2 libraries opaque to the caller

Ondřej Surý requested to merge 1068-make-libxml2-library-usage-opaque into master

The json-c and libxml2 libraries have previously leaked into the global namespace leading to forced -I<include_path> for every compilation unit using isc/xml.h header. This MR fixes the usage making the caller object opaque.

On top of that it modifies the build system to use ${JSON_C_CFLAGS} and ${LIBXML2_CFLAGS} only where needed. Unfortunately, without libtool (.la) the ${JSON_C_LIBS} and ${LIBXML2_LIBS} still needs to be added everywhere.

Closes #1068 (closed) Closes #1104 (closed)

Edited by Ondřej Surý

Merge request reports