mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
go: add support for /usr/local host installations
fix build when compiling on arm/aarch64
This commit is contained in:
parent
a68c4c7114
commit
684a2b2d64
@ -13,14 +13,14 @@ PKG_LONGDESC="An programming language that makes it easy to build simple, reliab
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
configure_host() {
|
||||
export GOOS=linux
|
||||
export GOROOT_FINAL=${TOOLCHAIN}/lib/golang
|
||||
if [ -x /usr/lib/go/bin/go ]; then
|
||||
if [ -x /usr/local/go/bin/go ]; then
|
||||
export GOROOT_BOOTSTRAP=/usr/local/go
|
||||
elif [ -x /usr/lib/go/bin/go ]; then
|
||||
export GOROOT_BOOTSTRAP=/usr/lib/go
|
||||
else
|
||||
export GOROOT_BOOTSTRAP=/usr/lib/golang
|
||||
fi
|
||||
export GOARCH=amd64
|
||||
|
||||
if [ ! -d ${GOROOT_BOOTSTRAP} ]; then
|
||||
cat <<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user