summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-29 11:37:49 -0700
committerMax Romanov <max.romanov@nginx.com>2017-08-29 11:37:49 -0700
commit5b879f0e2bdaf66321e814dee7225f7e99d9cc51 (patch)
tree52af3076a596f364544f50f59aeb41521db7cee9 /auto
parent52ae0e69c14cb65223e23b533e0753fe8aa1e971 (diff)
downloadunit-5b879f0e2bdaf66321e814dee7225f7e99d9cc51.tar.gz
unit-5b879f0e2bdaf66321e814dee7225f7e99d9cc51.tar.bz2
Using NXT_GO variable instead of explicit go.
Diffstat (limited to 'auto')
-rw-r--r--auto/modules/go8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto/modules/go b/auto/modules/go
index ea1a5343..b771de8a 100644
--- a/auto/modules/go
+++ b/auto/modules/go
@@ -79,7 +79,7 @@ fi
-NXT_GO_PATH=${NXT_GO_PATH=`go env GOPATH`}
+NXT_GO_PATH=${NXT_GO_PATH=`${NXT_GO} env GOPATH`}
NXT_GO_PATH=${NXT_GO_PATH:-`pwd`/${NXT_GO}}
$echo " + Go package path: \"${NXT_GO_PATH}\""
@@ -100,8 +100,8 @@ all: ${NXT_GO}
NXT_ROOT = `pwd`
GOPATH = $NXT_GO_PATH
-GOOS = `go env GOOS`
-GOARCH = `go env GOARCH`
+GOOS = `${NXT_GO} env GOOS`
+GOARCH = `${NXT_GO} env GOARCH`
${NXT_GO}:
install -d \$(GOPATH)/src/nginext
@@ -110,7 +110,7 @@ ${NXT_GO}:
CGO_CFLAGS="-I\$(NXT_ROOT)/build -I\$(NXT_ROOT)/src" \\
CGO_LDFLAGS="-L\$(NXT_ROOT)/build ${NXT_LIBRT}" \\
GOPATH=$NXT_GO_PATH \\
- go install -v nginext
+ ${NXT_GO} install -v nginext
${NXT_GO}-uninstall:
rm -rf \$(GOPATH)/src/nginext