]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: use HOST_CC to compile mkversion
authorDave Cheney <dave@cheney.net>
Tue, 31 May 2011 17:46:11 +0000 (10:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 May 2011 17:46:11 +0000 (10:46 -0700)
HOST_CC is set in Make.inc, so use that rather
than hardcoding quietgcc

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/4515163

src/pkg/runtime/Makefile

index b122e05999d1dec527e8575b8394fe0e520a46ca..fa9fa91734b4ad63aa4e0b59b1c0913388997a50 100644 (file)
@@ -122,10 +122,10 @@ $(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH)
        mv -f $@.x $@
 
 goc2c: goc2c.c
-       quietgcc -o $@ $<
+       $(HOST_CC) -o $@ $<
 
 mkversion: mkversion.c
-       quietgcc -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
+       $(HOST_CC) -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
 
 version.go: mkversion
        GOROOT="$(GOROOT_FINAL)" ./mkversion >version.go