diff options
author | Anthony Martin <ality@pbrane.org> | 2012-01-31 19:31:30 -0800 |
---|---|---|
committer | Anthony Martin <ality@pbrane.org> | 2012-01-31 19:31:30 -0800 |
commit | 5e3cff8a14d7637d916bd7560da0c1fa2072d6fd (patch) | |
tree | 852a13be331d6b3fd3c6bbc7edb1ff8b013fcaab /src/lib9 | |
parent | f265cf624c69dfee69a1d8403c09b7efe35b37bd (diff) | |
download | go-5e3cff8a14d7637d916bd7560da0c1fa2072d6fd.tar.gz |
build: move the "-c" flag into HOST_CFLAGS
On Plan 9 this flag is used to discover
constant expressions in "if" statements.
R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5601060
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib9/Makefile b/src/lib9/Makefile index 31f22c41e..bf1bf41a1 100644 --- a/src/lib9/Makefile +++ b/src/lib9/Makefile @@ -111,12 +111,12 @@ include ../Make.clib GOROOT_FINAL?=$(GOROOT) %.$O: fmt/%.c - $(HOST_CC) -c $(HOST_CFLAGS) -DPLAN9PORT -Ifmt $< + $(HOST_CC) $(HOST_CFLAGS) -DPLAN9PORT -Ifmt $< %.$O: utf/%.c - $(HOST_CC) -c $(HOST_CFLAGS) $< + $(HOST_CC) $(HOST_CFLAGS) $< goos.$O: goos.c GOVERSION=`../version.bash` && \ - $(HOST_CC) -c $(HOST_CFLAGS) -DGOOS='"$(GOOS)"' -DGOARCH='"$(GOARCH)"' -DGOROOT='"$(GOROOT_FINAL)"' -DGOVERSION='"'"$$GOVERSION"'"' $< + $(HOST_CC) $(HOST_CFLAGS) -DGOOS='"$(GOOS)"' -DGOARCH='"$(GOARCH)"' -DGOROOT='"$(GOROOT_FINAL)"' -DGOVERSION='"'"$$GOVERSION"'"' $< |