summaryrefslogtreecommitdiff
path: root/script/with-static.sh
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-06-07 15:38:32 +0200
committerCarlos Martín Nieto <[email protected]>2014-06-07 15:43:05 +0200
commitaabeb7f585da1cf966191886eab732db0020a41a (patch)
treed414cc7e46aece422e47f9ec43ada6b4ba59dcab /script/with-static.sh
parent6862c2c82d89d30b0283d8a7e77851a802534daa (diff)
Really build statically
Diffstat (limited to 'script/with-static.sh')
-rwxr-xr-xscript/with-static.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/with-static.sh b/script/with-static.sh
index 914d8b2..643dcff 100755
--- a/script/with-static.sh
+++ b/script/with-static.sh
@@ -4,6 +4,10 @@ set -ex
export INSTALL_LOCATION=$PWD/vendor/install
export PKG_CONFIG_PATH=$INSTALL_LOCATION/lib/pkgconfig
-export CGO_LDFLAGS='-lrt'
+
+export PCFILE="$PWD/vendor/libgit2/libgit2.pc"
+
+export CGO_LDFLAGS="$PWD/vendor/libgit2/libgit2.a $(pkg-config --static --libs $PCFILE)"
+export CGO_CFLAGS="$(pkg-config --static --cflags $PCFILE)"
$@