From a2b14b5be4bf70650f6ec4a7a1ebab7c0a993c81 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sat, 7 Jun 2014 19:00:05 +0200 Subject: Tighten up the build Build as release, and there is no need to install the library, we know where the files are. --- script/build-libgit2-static.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'script/build-libgit2-static.sh') diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh index ca5390d..b4d4241 100755 --- a/script/build-libgit2-static.sh +++ b/script/build-libgit2-static.sh @@ -4,13 +4,15 @@ set -ex VENDORED_PATH=vendor/libgit2 -cd $VENDORED_PATH - +cd $VENDORED_PATH && +mkdir -p build && +cd build && cmake -DTHREADSAFE=ON \ -DBUILD_CLAR=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_C_FLAGS=-fPIC \ + -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ -DCMAKE_INSTALL_PREFIX=../install \ - . + .. && -make install +cmake --build . -- cgit v1.2.3