Description: Use Debian package libjsonparser rather than bundled json.c
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2020-12-08
Forwarded: no

--- a/chirp/src/Makefile
+++ b/chirp/src/Makefile
@@ -2,7 +2,7 @@
 include ../../rules.mk
 
 # Globus is needed by all executables via libdttools.a/auth_globus.o
-LOCAL_LINKAGE = $(CCTOOLS_GLOBUS_LDFLAGS) -lsqlite3
+LOCAL_LINKAGE = $(CCTOOLS_GLOBUS_LDFLAGS) -lsqlite3 -ljsonparser
 
 EXTERNAL_DEPENDENCIES = ../../dttools/src/libdttools.a
 LIBRARIES = libchirp.a
--- a/configure
+++ b/configure
@@ -1167,7 +1167,7 @@
 then
 	static_libraries="../../dttools/src/libdttools.a ${zlib_path}/lib/libz.a"
 else
-	external_libraries="${external_libraries} -lstdc++ -lpthread -lz -lc -lm"
+	external_libraries="${external_libraries} -lstdc++ -lpthread -lz -lc -lm -ljsonparser"
 fi
 
 if [ $BUILD_SYS = DARWIN ]
