$OpenBSD: patch-build_go,v 1.6 2018/02/24 10:14:24 bket Exp $
Index: build.go
--- build.go.orig
+++ build.go
@@ -461,7 +461,7 @@ func appendParameters(args []string, tags []string, ta
 
 	if !debugBinary {
 		// Regular binaries get version tagged and skip some debug symbols
-		args = append(args, "-ldflags", ldflags())
+		args = append(args, "-x", "-ldflags", ldflags())
 	} else {
 		// -gcflags to disable optimizations and inlining. Skip -ldflags
 		// because `Could not launch program: decoding dwarf section info at
