aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index e47f25dce6..560b19b680 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -666,6 +666,7 @@ func runInstall(dir string, ch chan struct{}) {
if goldflags != "" {
link = append(link, goldflags)
}
+ link = append(link, "-extld="+compilerEnvLookup(defaultcc, goos, goarch))
link = append(link, "-o", pathf("%s/%s%s", tooldir, elem, exe))
targ = len(link) - 1
}