diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-04-22 14:57:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 14:57:02 +0100 |
commit | 86353a7260404e501153fe1781fbd194a5925f1a (patch) | |
tree | b6fc3dcf537bbbf1b73c105b92ba9aa6bc6f30c4 /script | |
parent | 5d346c11ead7153c103cca934fb3c934e130e8d8 (diff) | |
parent | cb2da47e56159faaaf143943c74ffb8f60a988b1 (diff) | |
download | libgit2-86353a7260404e501153fe1781fbd194a5925f1a.tar.gz |
Merge pull request #4173 from tiennou/mbedtls
mbedTLS support
Diffstat (limited to 'script')
-rwxr-xr-x | script/install-deps-linux.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh new file mode 100755 index 000000000..99cbde4e0 --- /dev/null +++ b/script/install-deps-linux.sh @@ -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 |