aboutsummaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-10-21 13:00:27 -0400
committerLeo Famulari <leo@famulari.name>2017-10-24 13:10:34 -0400
commit1c37f839fb58283c99bf46be860d66e579d6f555 (patch)
tree8436e733b5e365d950af774ab5fb1dd993e82ad0 /guix/build
parent22473f6964096fe5d938b7955275c135252cb002 (diff)
downloadgnu-guix-1c37f839fb58283c99bf46be860d66e579d6f555.tar
gnu-guix-1c37f839fb58283c99bf46be860d66e579d6f555.tar.gz
build-system/go: Strip the Go binaries with the native tool.
* guix/build/go-build-system.scm (build): Tell the Go linker to strip some symbol tables and debugging information.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/go-build-system.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm
index 7f04e3db8c..d8ccb98138 100644
--- a/guix/build/go-build-system.scm
+++ b/guix/build/go-build-system.scm
@@ -179,6 +179,9 @@ respectively."
(zero? (system* "go" "install"
"-v" ; print the name of packages as they are compiled
"-x" ; print each command as it is invoked
+ ;; Respectively, strip the symbol table and debug
+ ;; information, and the DWARF symbol table.
+ "-ldflags=-s -w"
import-path))
(begin
(display (string-append "Building '" import-path "' failed.\n"