From df623d03ab2518e691d198b51380a005332d251d Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 7 Aug 2012 10:00:58 +0800 Subject: [PATCH] cmd/go: remove $WORK paths in generated binaries Fixes #3748. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6357064 --- src/cmd/go/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 0ded45ed19b..ff5e0b9c3f3 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -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 {