summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/Makefile
diff options
context:
space:
mode:
authorLucio De Re <lucio.dere@gmail.com>2011-07-19 11:04:33 -0400
committerLucio De Re <lucio.dere@gmail.com>2011-07-19 11:04:33 -0400
commitefd069f272508e8d2018edcb17f62469a758ed8c (patch)
tree36ad77779bebf49d841f7e97fe2eb57ab3db96f5 /src/pkg/runtime/Makefile
parentbfffd51909e01b77f8dc0e47201f74151267f247 (diff)
downloadgo-efd069f272508e8d2018edcb17f62469a758ed8c.tar.gz
runtime: make goc2c build on Plan 9
pkg/runtime/Makefile: . Adjusted so "goc2c.c" is built using the Plan 9 libraries. pkg/runtime/goc2c.c: . Added/subtracted #include headers to correspond to Plan 9 toolkit. . Changed fprintf(stderr,...)/exit() combinations to sysfatal() calls, adjusted the "%u" format to "%ud". . Added exits(0) at the end of main(). . Made main() a void-returning function and removed the "return 0" at the end of it. Tested on UBUNTU and Plan 9 only. R=r, rsc CC=golang-dev http://codereview.appspot.com/4626093 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/runtime/Makefile')
-rw-r--r--src/pkg/runtime/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/Makefile b/src/pkg/runtime/Makefile
index 03f960cb8..64bd2b771 100644
--- a/src/pkg/runtime/Makefile
+++ b/src/pkg/runtime/Makefile
@@ -120,7 +120,7 @@ $(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH)
mv -f $@.x $@
goc2c: goc2c.c
- quietgcc -o $@ $<
+ quietgcc -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
mkversion: mkversion.c
quietgcc -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"