mirror of
https://github.com/golang/go
synced 2024-11-21 23:14:40 -07:00
cmd/dist: use correct package target when cross-compiling
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5672050
This commit is contained in:
parent
6ed2b6c47d
commit
def2022bc0
4
src/cmd/dist/build.c
vendored
4
src/cmd/dist/build.c
vendored
@ -605,10 +605,10 @@ install(char *dir)
|
||||
// Go library (package).
|
||||
vadd(&link, bpathf(&b, "%s/pack", tooldir));
|
||||
vadd(&link, "grc");
|
||||
p = bprintf(&b, "%s/pkg/%s_%s/%s", goroot, gohostos, gohostarch, dir+4);
|
||||
p = bprintf(&b, "%s/pkg/%s_%s/%s", goroot, goos, goarch, dir+4);
|
||||
*xstrrchr(p, '/') = '\0';
|
||||
xmkdirall(p);
|
||||
vadd(&link, bpathf(&b, "%s/pkg/%s_%s/%s.a", goroot, gohostos, gohostarch, dir+4));
|
||||
vadd(&link, bpathf(&b, "%s/pkg/%s_%s/%s.a", goroot, goos, goarch, dir+4));
|
||||
} else if(streq(dir, "cmd/go") || streq(dir, "cmd/cgo")) {
|
||||
// Go command.
|
||||
vadd(&link, bpathf(&b, "%s/%sl", tooldir, gochar));
|
||||
|
Loading…
Reference in New Issue
Block a user