build-style/go: support cross-compilation with cgo
This commit is contained in:
parent
2577e1aedd
commit
114c395bf9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue