summaryrefslogtreecommitdiff
path: root/script/build-libgit2-static.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/build-libgit2-static.sh')
-rwxr-xr-xscript/build-libgit2-static.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh
index e486d1d..ca5390d 100755
--- a/script/build-libgit2-static.sh
+++ b/script/build-libgit2-static.sh
@@ -9,6 +9,7 @@ cd $VENDORED_PATH
cmake -DTHREADSAFE=ON \
-DBUILD_CLAR=OFF \
-DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_C_FLAGS=-fPIC \
-DCMAKE_INSTALL_PREFIX=../install \
.