Commit 9bc6a404 authored by Russ Cox's avatar Russ Cox

cgo: allow .so in subdirectories

R=r
https://golang.org/cl/157103
parent c614ffe9
...@@ -88,7 +88,7 @@ dir: ...@@ -88,7 +88,7 @@ dir:
# x.cgo4.c - C implementations compiled with gcc to create dynamic library # x.cgo4.c - C implementations compiled with gcc to create dynamic library
# #
%.cgo1.go %.cgo2.go %.cgo3.c %.cgo4.c: %.go %.cgo1.go %.cgo2.go %.cgo3.c %.cgo4.c: %.go
cgo $(CGO_CFLAGS) $*.go CGOPKGPATH=$(dir) cgo $(CGO_CFLAGS) $*.go
# The rules above added x.cgo1.go and x.cgo2.go to $(GOFILES), # The rules above added x.cgo1.go and x.cgo2.go to $(GOFILES),
# added x.cgo3.$O to $OFILES, and added the installed copy of # added x.cgo3.$O to $OFILES, and added the installed copy of
......
...@@ -101,6 +101,6 @@ func main() { ...@@ -101,6 +101,6 @@ func main() {
os.Exit(2) os.Exit(2)
} }
p.PackagePath = p.Package; p.PackagePath = os.Getenv("CGOPKGPATH") + "/" + p.Package;
p.writeOutput(input); p.writeOutput(input);
} }
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