diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-03-29 22:14:17 +0200 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-04-11 21:02:44 +0200 |
commit | cb2da47e56159faaaf143943c74ffb8f60a988b1 (patch) | |
tree | 26faa73f785f65044c58caf4be740cba9d649d65 /script | |
parent | 10aff3d5236c390155d247c9c366a9e4ff133825 (diff) | |
download | libgit2-cb2da47e56159faaaf143943c74ffb8f60a988b1.tar.gz |
travis: pass -fPIC when configuring mbedtls
Diffstat (limited to 'script')
-rwxr-xr-x | script/install-deps-linux.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh index 68b3cc275..99cbde4e0 100755 --- a/script/install-deps-linux.sh +++ b/script/install-deps-linux.sh @@ -5,7 +5,8 @@ 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 - cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF . + # 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`" |