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

Index: cctools-7.14.5/chirp/src/Makefile
===================================================================
--- cctools-7.14.5.orig/chirp/src/Makefile
+++ cctools-7.14.5/chirp/src/Makefile
@@ -2,7 +2,7 @@ include ../../config.mk
 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
Index: cctools-7.14.5/configure
===================================================================
--- cctools-7.14.5.orig/configure
+++ cctools-7.14.5/configure
@@ -1167,7 +1167,7 @@ if [ "$optstatic" = 1 ]
 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 ]
