1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:14:42 -07:00

cmd/go: remove $WORK paths in generated binaries

Fixes #3748.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6357064
This commit is contained in:
Shenghou Ma 2012-08-07 10:00:58 +08:00
parent 6e9506a7b4
commit df623d03ab

View File

@ -1299,7 +1299,7 @@ func (gcToolchain) pack(b *builder, p *Package, objDir, afile string, ofiles []s
for _, f := range ofiles {
absOfiles = append(absOfiles, mkAbs(objDir, f))
}
return b.run(p.Dir, p.ImportPath, tool("pack"), "grc", mkAbs(objDir, afile), absOfiles)
return b.run(p.Dir, p.ImportPath, tool("pack"), "grcP", b.work, mkAbs(objDir, afile), absOfiles)
}
func (gcToolchain) ld(b *builder, p *Package, out string, allactions []*action, mainpkg string, ofiles []string) error {