8000 travis: pass -fPIC when configuring mbedtls · libgit2/libgit2@cb2da47 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb2da47

Browse files
committed
travis: pass -fPIC when configuring mbedtls
1 parent 10aff3d commit cb2da47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/install-deps-linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -x
55
if [ "$MBEDTLS" ]; then
66
git clone --depth 10 --single-branch --branch mbedtls-2.6.1 https://github.com/ARMmbed/mbedtls.git ./deps/mbedtls
77
cd ./deps/mbedtls
8-
cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF .
8+
# We pass -fPIC explicitely because we'll include it in libgit2.so
9+
CFLAGS=-fPIC cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON .
910
cmake --build .
1011

1112
echo "mbedTLS built in `pwd`"

0 commit comments

Comments
 (0)
0