mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +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"
|
PKG_TOOLCHAIN="manual"
|
||||||
|
|
||||||
configure_host() {
|
configure_host() {
|
||||||
export GOOS=linux
|
|
||||||
export GOROOT_FINAL=${TOOLCHAIN}/lib/golang
|
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
|
export GOROOT_BOOTSTRAP=/usr/lib/go
|
||||||
else
|
else
|
||||||
export GOROOT_BOOTSTRAP=/usr/lib/golang
|
export GOROOT_BOOTSTRAP=/usr/lib/golang
|
||||||
fi
|
fi
|
||||||
export GOARCH=amd64
|
|
||||||
|
|
||||||
if [ ! -d ${GOROOT_BOOTSTRAP} ]; then
|
if [ ! -d ${GOROOT_BOOTSTRAP} ]; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user