diff options
| author | lhchavez <[email protected]> | 2019-01-08 02:01:44 +0000 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2019-01-08 02:01:44 +0000 |
| commit | b609c04b681655f474b13798f6c74658295fa3a4 (patch) | |
| tree | 5373c4bc84d15ea28226103c11fd293dcdec7396 /script/build-libgit2-static.sh | |
| parent | d7fd15b1e0fda55c7237609bbdc8caddff49d032 (diff) | |
| parent | 2609f4c6f25a7da56e2e4960c250ea3dfb53e82b (diff) | |
Merge remote-tracking branch 'upstream/master' into mempack
Diffstat (limited to 'script/build-libgit2-static.sh')
| -rwxr-xr-x | script/build-libgit2-static.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh index 5723721..680dd93 100755 --- a/script/build-libgit2-static.sh +++ b/script/build-libgit2-static.sh @@ -2,18 +2,19 @@ set -ex -VENDORED_PATH=vendor/libgit2 +ROOT="$(cd "$0/../.." && echo "${PWD}")" +BUILD_PATH="${ROOT}/static-build" +VENDORED_PATH="${ROOT}/vendor/libgit2" -cd $VENDORED_PATH && -mkdir -p install/lib && -mkdir -p build && -cd build && +mkdir -p "${BUILD_PATH}/build" "${BUILD_PATH}/install/lib" + +cd "${BUILD_PATH}/build" && cmake -DTHREADSAFE=ON \ -DBUILD_CLAR=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_C_FLAGS=-fPIC \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ - -DCMAKE_INSTALL_PREFIX=../install \ - .. && + -DCMAKE_INSTALL_PREFIX="${BUILD_PATH}/install" \ + "${VENDORED_PATH}" && -cmake --build . +cmake --build . --target install |
