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.
This commit is contained in:
parent
22473f6964
commit
1c37f839fb
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue