git2go/script/with-static.sh

14 lines
321 B
Bash
Raw Normal View History

#!/bin/sh
set -ex
export INSTALL_LOCATION=$PWD/vendor/install
export PKG_CONFIG_PATH=$INSTALL_LOCATION/lib/pkgconfig
2014-06-07 08:38:32 -05:00
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)"
$@