summaryrefslogtreecommitdiff
path: root/script/with-less-static.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/with-less-static.sh')
-rwxr-xr-xscript/with-less-static.sh13
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)"
+
+$@