Commit 891d344c authored by Russ Cox's avatar Russ Cox

cmd/go: on arm, all binaries depend on math

Change-Id: I10b781927245a3e9822f9cffe254f226a5b93213
Reviewed-on: https://go-review.googlesource.com/3279Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 8d44ede0
......@@ -524,6 +524,10 @@ func (p *Package) load(stk *importStack, bp *build.Package, err error) *Package
if buildRace && (!p.Standard || !raceExclude[p.ImportPath]) {
importPaths = append(importPaths, "runtime/race")
}
// On ARM with GOARM=5, everything depends on math for the link.
if p.ImportPath == "main" && goarch == "arm" {
importPaths = append(importPaths, "math")
}
}
// Build list of full paths to all Go files in the package,
......
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