build-style/go: support cross-compilation with cgo

This commit is contained in:
Dominik Honnef 2015-09-04 02:18:57 +02:00
parent 2577e1aedd
commit 114c395bf9

View file

@ -12,3 +12,8 @@ case "$XBPS_TARGET_MACHINE" in
esac
export GOPATH="${wrksrc}/_build-${pkgname}-xbps"
export CGO_CFLAGS="$CFLAGS"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_ENABLED=1