aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Strasheim <fullung@gmail.com>2010-12-07 15:28:26 -0500
committerRuss Cox <rsc@golang.org>2010-12-07 15:28:26 -0500
commit836643400cccf84c06591f92e8ca1d1f52962bf3 (patch)
tree7ecb2835ce623163acf4b01b04ab23aa08e03b01
parent802360edb40d75c15d2d6ce49861d73fd98e3d88 (diff)
downloadgo-836643400cccf84c06591f92e8ca1d1f52962bf3.tar.gz
go-836643400cccf84c06591f92e8ca1d1f52962bf3.zip
build: Allow archiver to be specified in the environment with HOST_AR.
R=rsc CC=golang-dev https://golang.org/cl/2515043
-rw-r--r--src/Make.clib2
-rw-r--r--src/Make.inc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Make.clib b/src/Make.clib
index 9f72bcb626..ebe4f84b96 100644
--- a/src/Make.clib
+++ b/src/Make.clib
@@ -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)
diff --git a/src/Make.inc b/src/Make.inc
index 8096253d02..2d9ee29058 100644
--- a/src/Make.inc
+++ b/src/Make.inc
@@ -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