13 lines
497 B
Text
13 lines
497 B
Text
|
Index: build.go
|
||
|
--- build.go.orig
|
||
|
+++ build.go
|
||
|
@@ -562,7 +562,7 @@ func appendParameters(args []string, tags []string, pk
|
||
|
|
||
|
if !debugBinary {
|
||
|
// Regular binaries get version tagged and skip some debug symbols
|
||
|
- args = append(args, "-trimpath", "-ldflags", ldflags(tags))
|
||
|
+ args = append(args, "-x", "-trimpath", "-ldflags", ldflags(tags))
|
||
|
} else {
|
||
|
// -gcflags to disable optimizations and inlining. Skip -ldflags
|
||
|
// because `Could not launch program: decoding dwarf section info at
|