mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #7797 from arthur-liberman/fix-go
go: add support for /usr/local host installations
This commit is contained in:
commit
b15bc650f2
@ -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