1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:04:39 -07:00

build: Allow archiver to be specified in the environment with HOST_AR.

R=rsc
CC=golang-dev
https://golang.org/cl/2515043
This commit is contained in:
Albert Strasheim 2010-12-07 15:28:26 -05:00 committed by Russ Cox
parent 802360edb4
commit 836643400c
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ $(QUOTED_GOROOT)/lib/$(LIB): $(LIB)
cp $(LIB) "$(GOROOT)/lib/$(LIB)"
$(LIB): $(OFILES)
ar rsc $(LIB) $(OFILES)
$(HOST_AR) rsc $(LIB) $(OFILES)
CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)

View File

@ -101,6 +101,7 @@ HOST_CC=quietgcc
HOST_LD=quietgcc
HOST_O=o
HOST_YFLAGS=-d
HOST_AR?=ar
# These two variables can be overridden in the environment
# to build with other flags. They are like $CFLAGS and $LDFLAGS