mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
13 lines
425 B
Diff
13 lines
425 B
Diff
|
diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go
|
||
|
index 0b14725..a7608ce 100644
|
||
|
--- a/src/cmd/go/build.go
|
||
|
+++ b/src/cmd/go/build.go
|
||
|
@@ -2310,6 +2310,7 @@ func (gcToolchain) ld(b *builder, root *action, out string, allactions []*action
|
||
|
}
|
||
|
}
|
||
|
var ldflags []string
|
||
|
+ ldflags = append(ldflags, "-s")
|
||
|
if buildContext.InstallSuffix != "" {
|
||
|
ldflags = append(ldflags, "-installsuffix", buildContext.InstallSuffix)
|
||
|
}
|