aboutsummaryrefslogtreecommitdiff
path: root/extra/libgit2
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-07 12:51:24 +0300
committerCem Keylan <cem@ckyln.com>2021-02-07 12:51:24 +0300
commit456614e6452757d557ab1dcd04c15101a0d830aa (patch)
tree743bb16ba6e6fcd590580950a05f6387ac89c061 /extra/libgit2
parentbd1d4e77e4cc47071e5cece965ec778c36de48a2 (diff)
downloadrepository-456614e6452757d557ab1dcd04c15101a0d830aa.tar.gz
libgit2: fix build style, library location, and install static libraries
Diffstat (limited to 'extra/libgit2')
-rwxr-xr-xextra/libgit2/build12
1 files changed, 6 insertions, 6 deletions
diff --git a/extra/libgit2/build b/extra/libgit2/build
index acd4c60d..08881c65 100755
--- a/extra/libgit2/build
+++ b/extra/libgit2/build
@@ -1,12 +1,12 @@
#!/bin/sh -e
export DESTDIR="$1"
-mkdir build && cd build
-cmake \
+cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- ..
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_BUILD_TYPE=Release
-cmake --build .
-cmake --install .
+cmake --build build
+cmake --install build