summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-03-29 22:14:17 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-04-11 21:02:44 +0200
commitcb2da47e56159faaaf143943c74ffb8f60a988b1 (patch)
tree26faa73f785f65044c58caf4be740cba9d649d65 /script
parent10aff3d5236c390155d247c9c366a9e4ff133825 (diff)
downloadlibgit2-cb2da47e56159faaaf143943c74ffb8f60a988b1.tar.gz
travis: pass -fPIC when configuring mbedtls
Diffstat (limited to 'script')
-rwxr-xr-xscript/install-deps-linux.sh3
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`"