mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -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:
parent
802360edb4
commit
836643400c
@ -19,7 +19,7 @@ $(QUOTED_GOROOT)/lib/$(LIB): $(LIB)
|
|||||||
cp $(LIB) "$(GOROOT)/lib/$(LIB)"
|
cp $(LIB) "$(GOROOT)/lib/$(LIB)"
|
||||||
|
|
||||||
$(LIB): $(OFILES)
|
$(LIB): $(OFILES)
|
||||||
ar rsc $(LIB) $(OFILES)
|
$(HOST_AR) rsc $(LIB) $(OFILES)
|
||||||
|
|
||||||
CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)
|
CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)
|
||||||
|
|
||||||
|
@ -101,6 +101,7 @@ HOST_CC=quietgcc
|
|||||||
HOST_LD=quietgcc
|
HOST_LD=quietgcc
|
||||||
HOST_O=o
|
HOST_O=o
|
||||||
HOST_YFLAGS=-d
|
HOST_YFLAGS=-d
|
||||||
|
HOST_AR?=ar
|
||||||
|
|
||||||
# These two variables can be overridden in the environment
|
# These two variables can be overridden in the environment
|
||||||
# to build with other flags. They are like $CFLAGS and $LDFLAGS
|
# to build with other flags. They are like $CFLAGS and $LDFLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user