git2go/script/with-less-static.sh

14 lines
291 B
Bash
Executable File

#!/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)"
$@