diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-06-03 12:03:00 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-06-03 12:03:00 +0200 |
| commit | de4f42f476e9d635a2452fa9562b60ba5ef39842 (patch) | |
| tree | beb8f69264112eb17b7be0d6db63a14422f685cb /script/with-static.sh | |
| parent | 3ca566e105e8156a2583f36e9dd9e06ed3b3564c (diff) | |
Add scripts to build and use a static libgit2
Diffstat (limited to 'script/with-static.sh')
| -rwxr-xr-x | script/with-static.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/with-static.sh b/script/with-static.sh new file mode 100755 index 0000000..fe91334 --- /dev/null +++ b/script/with-static.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -ex + +export LIBGIT2_LOCATION=$PWD/libgit2/install +export PKG_CONFIG_PATH=$LIBGIT2_LOCATION/lib/pkgconfig +export LIBGIT2_A=$LIBGIT2_LOCATION/lib/libgit2.a +export CGO_LDFLAGS="$LIBGIT2_A $(pkg-config --static --libs libgit2)" + +$@ |
