diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-06-07 15:38:32 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-06-07 15:43:05 +0200 |
| commit | aabeb7f585da1cf966191886eab732db0020a41a (patch) | |
| tree | d414cc7e46aece422e47f9ec43ada6b4ba59dcab /script/with-less-static.sh | |
| parent | 6862c2c82d89d30b0283d8a7e77851a802534daa (diff) | |
Really build statically
Diffstat (limited to 'script/with-less-static.sh')
| -rwxr-xr-x | script/with-less-static.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/script/with-less-static.sh b/script/with-less-static.sh new file mode 100755 index 0000000..faaeb01 --- /dev/null +++ b/script/with-less-static.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -ex + +export INSTALL_LOCATION=$PWD/vendor/install +export PKG_CONFIG_PATH=$INSTALL_LOCATION/lib/pkgconfig + +export PCFILE="$PWD/vendor/libgit2/libgit2.pc" + +export CGO_LDFLAGS="$(pkg-config --static --libs $PCFILE)" +export CGO_CFLAGS="$(pkg-config --static --cflags $PCFILE)" + +$@ |
