Merge pull request #4173 from tiennou/mbedtls

mbedTLS support
This commit is contained in:
Edward Thomson
2018-04-22 14:57:02 +01:00
committed by GitHub
15 changed files with 735 additions and 9 deletions

13
script/install-deps-linux.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -x
if [ "$MBEDTLS" ]; then
git clone --depth 10 --single-branch --branch mbedtls-2.6.1 https://github.com/ARMmbed/mbedtls.git ./deps/mbedtls
cd ./deps/mbedtls
# We pass -fPIC explicitely because we'll include it in libgit2.so
CFLAGS=-fPIC cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON .
cmake --build .
echo "mbedTLS built in `pwd`"
fi