summaryrefslogtreecommitdiff
path: root/script/build-libgit2-static.sh
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-06-07 19:00:05 +0200
committerCarlos Martín Nieto <[email protected]>2014-06-07 19:12:33 +0200
commita2b14b5be4bf70650f6ec4a7a1ebab7c0a993c81 (patch)
treea72c1fb13425f465405927270a1797005a2e699b /script/build-libgit2-static.sh
parent12a3a1e05c03fdc9767ef62e5ff9e0d677946525 (diff)
Tighten up the build
Build as release, and there is no need to install the library, we know where the files are.
Diffstat (limited to 'script/build-libgit2-static.sh')
-rwxr-xr-xscript/build-libgit2-static.sh10
1 files changed, 6 insertions, 4 deletions
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 .