Makefile.am (CHECK_ENV): Set GOROOT.
authorIan Lance Taylor <iant@golang.org>
Sat, 15 Jul 2017 17:50:18 +0000 (17:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 15 Jul 2017 17:50:18 +0000 (17:50 +0000)
* Makefile.am (CHECK_ENV): Set GOROOT.
(ECHO_ENV): Report setting GOROOT.
* Makefile.in: Rebuild.

From-SVN: r250226

gotools/ChangeLog
gotools/Makefile.am
gotools/Makefile.in

index 76028962dc6a5b1f4129f887f9f3c5f7ae2bffdb..2d33c70dc30b2cde0e21de11289af2f60e8d5673 100644 (file)
@@ -1,3 +1,9 @@
+2017-07-15  Ian Lance Taylor  <iant@golang.org>
+
+       * Makefile.am (CHECK_ENV): Set GOROOT.
+       (ECHO_ENV): Report setting GOROOT.
+       * Makefile.in: Rebuild.
+
 2017-06-29  Ian Lance Taylor  <iant@golang.org>
 
        * Makefile.am (MOSTLYCLEANFILES): Remove testing files and logs.
index 787a3c3d09483648ec5aecbd81086c588768955f..68a7003f8f5c4d9bbe2314acbc0453d15ca7241a 100644 (file)
@@ -174,11 +174,13 @@ CHECK_ENV = \
        export GO_TESTING_GOTOOLS; \
        abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
        LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
-       export LD_LIBRARY_PATH;
+       export LD_LIBRARY_PATH; \
+       GOROOT=$${abs_libgodir}; \
+       export GOROOT;
 
 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
 # It assumes that abs_libgodir is set.
-ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`
+ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir}`
 
 # check-go-tools runs `go test cmd/go` in our environment.
 check-go-tool: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo
index 8f4eefabda43ac2ea0541e42c26caceaa568e9ec..e083bb473ada0c06cddec987107def44105140e1 100644 (file)
@@ -338,12 +338,14 @@ MOSTLYCLEANFILES = \
 @NATIVE_TRUE@  export GO_TESTING_GOTOOLS; \
 @NATIVE_TRUE@  abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
 @NATIVE_TRUE@  LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
-@NATIVE_TRUE@  export LD_LIBRARY_PATH;
+@NATIVE_TRUE@  export LD_LIBRARY_PATH; \
+@NATIVE_TRUE@  GOROOT=$${abs_libgodir}; \
+@NATIVE_TRUE@  export GOROOT;
 
 
 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
 # It assumes that abs_libgodir is set.
-@NATIVE_TRUE@ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`
+@NATIVE_TRUE@ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir}`
 all: all-am
 
 .SUFFIXES: