void-packages/common/environment/build-style/go.sh
Dominik Honnef 2bb87e4e07 build-style/go: don't set GOBIN
Go 1.5 doesn't permit our use of GOBIN anymore, breaking
cross-compilation (for details, see
https://github.com/golang/go/issues/9769)

In retrospect, I'm not sure why we set GOBIN in the first place;
GOPATH/bin should suffice.

Closes #2337
2015-08-22 20:58:24 +02:00

14 lines
339 B
Bash

hostmakedepends+=" go"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" go-cross-linux"
fi
nostrip=yes
case "$XBPS_TARGET_MACHINE" in
armv6*) export GOARCH=arm; export GOARM=6;;
armv7*) export GOARCH=arm; export GOARM=7;;
i686*) export GOARCH=386;;
x86_64*) export GOARCH=amd64;;
esac
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"