Commit f104a198 authored by Russ Cox's avatar Russ Cox

fix build

TBR=rog
CC=golang-dev
https://golang.org/cl/4259046
parent 9a8c0790
...@@ -47,7 +47,7 @@ coverage: ...@@ -47,7 +47,7 @@ coverage:
gotest gotest
6cov -g $(shell pwd) $O.out | grep -v '_test\.go:' 6cov -g $(shell pwd) $O.out | grep -v '_test\.go:'
CLEANFILES+=*.so _obj _test _testmain.go *.exe CLEANFILES+=*.so _obj _test _testmain.go *.exe _cgo*
test: test:
gotest gotest
...@@ -150,6 +150,7 @@ _cgo1_.o: _cgo_main.o $(CGO_OFILES) ...@@ -150,6 +150,7 @@ _cgo1_.o: _cgo_main.o $(CGO_OFILES)
$(HOST_CC) $(_CGO_CFLAGS_$(GOARCH)) -g -fPIC -O2 -o $@ $^ $(CGO_LDFLAGS) $(_CGO_LDFLAGS) $(HOST_CC) $(_CGO_CFLAGS_$(GOARCH)) -g -fPIC -O2 -o $@ $^ $(CGO_LDFLAGS) $(_CGO_LDFLAGS)
_obj/_cgo_import.c: _cgo1_.o _obj/_cgo_import.c: _cgo1_.o
@mkdir -p _obj
cgo -dynimport _cgo1_.o >$@_ && mv -f $@_ $@ cgo -dynimport _cgo1_.o >$@_ && mv -f $@_ $@
# The rules above added x.cgo1.go and _cgo_gotypes.go to $(GOFILES), # The rules above added x.cgo1.go and _cgo_gotypes.go to $(GOFILES),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment