From 96c3f0dda3b5a9640c4995f46ac8efec77686269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 26 Oct 2017 21:54:47 +0300 Subject: [PATCH] Build explicit version of Jansson in build scripts As the Avro C API depends on the Jansson library, the build scripts must build it. This is not optimal as the Jansson version needs to be updated in two places. --- BUILD/install_build_deps.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/BUILD/install_build_deps.sh b/BUILD/install_build_deps.sh index e8714c64a..9fb10ecfd 100755 --- a/BUILD/install_build_deps.sh +++ b/BUILD/install_build_deps.sh @@ -109,6 +109,24 @@ cd tcl8.6.5/unix sudo make install cd ../../.. + +# Jansson +git clone https://github.com/akheron/jansson.git +if [ $? != 0 ] +then + echo "Error cloning jansson" + exit 1 +fi + +cd jansson +git checkout v2.9 +mkdir build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS=-fPIC -DJANSSON_INSTALL_LIB_DIR=$install_libdir +make +sudo make install +cd ../../ + # Avro C API wget -r -l1 -nH --cut-dirs=2 --no-parent -A.tar.gz --no-directories http://mirror.netinch.com/pub/apache/avro/stable/c if [ $? != 0 ]