aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-07-15 14:15:39 -0700
committerIan Lance Taylor <iant@golang.org>2010-07-15 14:15:39 -0700
commit84f67eb8e6d05936694eee9099b6d6a688d898c3 (patch)
tree1f3307d91b35ea079cce89b60cfd1eec58fb5798 /src/make.bash
parent5958fd7f8908243338976258e03f18735679f7f2 (diff)
downloadgo-84f67eb8e6d05936694eee9099b6d6a688d898c3.tar.xz
Build libcgo.so with $(CC), not the gcc on PATH.
Change make.bash to make sure that $(CC) is defined to match the compiler used to build the tools. R=rsc CC=golang-dev https://golang.org/cl/1853041
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index b718bb9562..b95635b565 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -12,6 +12,7 @@ unset CDPATH # in case user has it set
rm -f "$GOBIN"/quietgcc
CC=${CC:-gcc}
+export CC
sed -e "s|@CC@|$CC|" < "$GOROOT"/src/quietgcc.bash > "$GOBIN"/quietgcc
chmod +x "$GOBIN"/quietgcc