go: fix build using ubuntu golang-go

This commit is contained in:
Jonas Karlman 2017-10-08 20:11:17 +02:00
parent adf3f57e6c
commit 469f699214

View File

@ -44,7 +44,11 @@ PKG_AUTORECONF="no"
configure_host() {
export GOOS=linux
export GOROOT_FINAL=$TOOLCHAIN/lib/golang
if [ -x /usr/lib/go/bin/go ]; then
export GOROOT_BOOTSTRAP=/usr/lib/go
else
export GOROOT_BOOTSTRAP=/usr/lib/golang
fi
export GOARCH=amd64
}