]> Cypherpunks repositories - gostls13.git/commitdiff
build: Allow archiver to be specified in the environment with HOST_AR.
authorAlbert Strasheim <fullung@gmail.com>
Tue, 7 Dec 2010 20:28:26 +0000 (15:28 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 7 Dec 2010 20:28:26 +0000 (15:28 -0500)
R=rsc
CC=golang-dev
https://golang.org/cl/2515043

src/Make.clib
src/Make.inc

index 9f72bcb626ec572c5f1482bc1eefa62ae9ab13f6..ebe4f84b9618bb5258b5144d467bd55c1a7f8ffe 100644 (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)
 
index 8096253d0243717096dbbb31fdf27d488eb3a21c..2d9ee29058cd968bbbdf31d6cd6f8f4b089e1c5c 100644 (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