Update to libsodium 1.0.18

This commit is contained in:
DenioD
2019-12-13 20:31:46 +01:00
parent 1a0d876d3e
commit 5474088541

View File

@@ -9,16 +9,16 @@ echo "Building libsodium"
# Go into the lib sodium directory # Go into the lib sodium directory
cd res/libsodium cd res/libsodium
if [ ! -f libsodium-1.0.16.tar.gz ]; then if [ ! -f libsodium-1.0.18.tar.gz ]; then
curl -LO https://github.com/MyHush/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz curl -LO https://github.com/MyHush/libsodium/releases/download/1.0.18/libsodium-1.0.18.tar.gz
fi fi
if [ ! -d 1.0.16 ]; then if [ ! -d libsodium-1.0.18 ]; then
tar xf libsodium-1.0.16.tar.gz tar xf libsodium-1.0.18.tar.gz
fi fi
# Now build it # Now build it
cd libsodium-1.0.16 cd libsodium-1.0.18
LIBS="" ./configure LIBS="" ./configure
make clean make clean
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
@@ -29,4 +29,4 @@ fi
cd .. cd ..
# copy the library to the parents's res/ folder # copy the library to the parents's res/ folder
cp libsodium-1.0.16/src/libsodium/.libs/libsodium.a ../ cp libsodium-1.0.18/src/libsodium/.libs/libsodium.a ../