]> Cypherpunks repositories - gostls13.git/commitdiff
build: clear custom variables like GREP_OPTIONS
authorRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 03:51:55 +0000 (23:51 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 03:51:55 +0000 (23:51 -0400)
Fixes #946.

R=r, r2
CC=golang-dev
https://golang.org/cl/2137048

src/Make.inc
src/pkg/deps.bash

index 6af9145f9eff371584a53a6c87cb1f84fe3efa5c..858cb3a68327f6eb70b6c386a71d7dc20ddf5e0b 100644 (file)
@@ -90,6 +90,14 @@ HOST_YFLAGS=-d
 HOST_CFLAGS=-ggdb -I"$(GOROOT)/include" -O2 -fno-inline
 PWD=$(shell pwd)
 
+# Make environment more standard.
+LANG:=
+LC_ALL:=C
+LC_CTYPE:=C
+GREP_OPTIONS:=
+GREP_COLORS:=
+export LANG LC_ALL LC_CTYPE GREP_OPTIONS GREP_COLORS
+
 go-env:
        @echo export GOARCH=$(GOARCH)
        @echo export GOOS=$(GOOS)
@@ -100,6 +108,11 @@ go-env:
        @echo export LD="$(LD)"
        @echo export OS="$(OS)"
        @echo export CFLAGS="$(CFLAGS)"
+       @echo export LANG="$(LANG)"
+       @echo export LC_ALL="$(LC_ALL)"
+       @echo export LC_CTYPE="$(LC_CTYPE)"
+       @echo export GREP_OPTIONS="$(GREP_OPTIONS)"
+       @echo export GREP_COLORS="$(GREP_COLORS)"
        @echo MAKE_GO_ENV_WORKED=1
 
 # Don't let the targets in this file be used
index 0acaef678a95d92169ae6b8fc5c5e0446ec98db9..8267e4bde16f92f305be741ca48cd541dda92ab9 100755 (executable)
@@ -3,6 +3,8 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
+eval $(gomake --no-print-directory -f ../Make.inc go-env)
+
 OUT="Make.deps"
 TMP="Make.deps.tmp"