From 54f1e1b1634cc0292fa8a1ecaf2569caafb257bf Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Thu, 9 Feb 2012 20:47:12 -0200 Subject: cmd/dist: fix GOROOT_FINAL R=rsc, gustavo CC=golang-dev https://golang.org/cl/5642045 --- src/make.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/make.bash') diff --git a/src/make.bash b/src/make.bash index 32a91a2fc9..55a292eba4 100755 --- a/src/make.bash +++ b/src/make.bash @@ -47,7 +47,9 @@ done echo '# Building C bootstrap tool.' mkdir -p ../bin/tool -DEFGOROOT='-DDEFAULT_GOROOT="'"$(cd .. && pwd)"'"' +export GOROOT="$(cd .. && pwd)" +GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}" +DEFGOROOT='-DGOROOT_FINAL="'"$GOROOT_FINAL"'"' gcc -O2 -Wall -Werror -o ../bin/tool/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c echo -- cgit v1.3