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.
This commit is contained in:
parent
f805716700
commit
96c3f0dda3
@ -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 ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user