summaryrefslogtreecommitdiff
path: root/script/with-static.sh
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-06-03 18:35:09 +0200
committerCarlos Martín Nieto <[email protected]>2014-06-03 18:35:09 +0200
commit064629428296914c4a5875f8da6b557d55f82930 (patch)
treedc7123f06956cdaf851674f8066c11fbfa75c11c /script/with-static.sh
parent29a983b68f6dc75271d24e33fc5b3eb7801ce986 (diff)
Move some logic into the Makefile
This should provide a nice compromise between the scripts and comon commands.
Diffstat (limited to 'script/with-static.sh')
-rwxr-xr-xscript/with-static.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/script/with-static.sh b/script/with-static.sh
index fe91334..e92edec 100755
--- a/script/with-static.sh
+++ b/script/with-static.sh
@@ -2,9 +2,7 @@
set -ex
-export LIBGIT2_LOCATION=$PWD/libgit2/install
-export PKG_CONFIG_PATH=$LIBGIT2_LOCATION/lib/pkgconfig
-export LIBGIT2_A=$LIBGIT2_LOCATION/lib/libgit2.a
-export CGO_LDFLAGS="$LIBGIT2_A $(pkg-config --static --libs libgit2)"
+export INSTALL_LOCATION=$PWD/vendor/install
+export PKG_CONFIG_PATH=$INSTALL_LOCATION/lib/pkgconfig
$@