mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
14 lines
433 B
Bash
Executable File
14 lines
433 B
Bash
Executable File
#!/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
|