summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-12-19 01:30:28 +0100
committerCarlos Martín Nieto <[email protected]>2016-11-01 00:17:51 +0100
commit9c5fb973fcc1acd7cd55e120fefef101be46e60a (patch)
tree5e4476bc3b86fff5f5962e143918cbb408dc59d7 /script
parent9af9dd3ad71055e60ff7af6ffd5da42960915996 (diff)
Get rid of the with-static.sh script
CGO can perform variable substitution in the directives, so we don't need to use a script to set up the variables; we can let the go tool do it for us.
Diffstat (limited to 'script')
-rwxr-xr-xscript/with-static.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/script/with-static.sh b/script/with-static.sh
deleted file mode 100755
index 3f60e31..0000000
--- a/script/with-static.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-set -ex
-
-export BUILD="$PWD/vendor/libgit2/build"
-export PCFILE="$BUILD/libgit2.pc"
-
-FLAGS=$(pkg-config --static --libs $PCFILE) || exit 1
-export CGO_LDFLAGS="$BUILD/libgit2.a -L$BUILD ${FLAGS}"
-export CGO_CFLAGS="-I$PWD/vendor/libgit2/include"
-
-$@