diff options
| author | Jesse Ezell <[email protected]> | 2014-03-11 12:29:40 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-11 12:29:40 -0700 |
| commit | f1e889928a5804a55712266d09acafd1371aceb3 (patch) | |
| tree | cf30f8ce9fcaec51c3d71ae911a6a8cdaf288d34 /script/build-libgit2.sh | |
| parent | e5946d4009cf58f7a041f647e953a454159e2d4f (diff) | |
| parent | 1cf81178141c504c62bb3faaa406db665dc5471a (diff) | |
merge with latest, replace merge wrappers with go code
Diffstat (limited to 'script/build-libgit2.sh')
| -rwxr-xr-x | script/build-libgit2.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh new file mode 100755 index 0000000..aa43df5 --- /dev/null +++ b/script/build-libgit2.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -ex + +git clone --depth 1 --single-branch git://github.com/libgit2/libgit2 libgit2 + +cd libgit2 +cmake -DTHREADSAFE=ON \ + -DBUILD_CLAR=OFF \ + -DCMAKE_INSTALL_PREFIX=$PWD/install \ + . + +make install + +# Let the Go build system know where to find libgit2 +export LD_LIBRARY_PATH="$TMPDIR/libgit2/install/lib" +export PKG_CONFIG_PATH="$TMPDIR/libgit2/install/lib/pkgconfig" |
