From aabeb7f585da1cf966191886eab732db0020a41a Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sat, 7 Jun 2014 15:38:32 +0200 Subject: Really build statically --- script/with-static.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'script/with-static.sh') 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)" $@ -- cgit v1.2.3