build-system/gnu: Strip with '--strip-all' instead of '--strip-debug'.
This saves 19% on the 'bin' directory of Coreutils, and certainly helpful for things like Git's 'libexec' directory. * guix/build-system/gnu.scm (gnu-build): Change default value for #:strip-flags to '("--strip-all"). * guix/build/gnu-build-system.scm (strip): Ditto. * gnu/packages/linux.scm (linux-libre)[arguments]: Add #:strip-flags.
This commit is contained in:
parent
9a224ac2e3
commit
856ae5e6c7
|
@ -292,6 +292,11 @@ for SYSTEM, or #f if there is no configuration for SYSTEM."
|
|||
(alist-replace
|
||||
'install ,install-phase
|
||||
(alist-delete 'configure %standard-phases)))
|
||||
|
||||
;; Use '--strip-debug', not '--strip-all', because the latter leads to
|
||||
;; unloadable modules (due to the lack of a symbol table.)
|
||||
#:strip-flags '("--strip-debug")
|
||||
|
||||
#:tests? #f))
|
||||
(synopsis "100% free redistribution of a cleaned Linux kernel")
|
||||
(description
|
||||
|
|
|
@ -274,7 +274,7 @@ standard packages used as implicit inputs of the GNU build system."
|
|||
(parallel-tests? #t)
|
||||
(patch-shebangs? #t)
|
||||
(strip-binaries? #t)
|
||||
(strip-flags ''("--strip-debug"))
|
||||
(strip-flags ''("--strip-all"))
|
||||
(strip-directories ''("lib" "lib64" "libexec"
|
||||
"bin" "sbin"))
|
||||
(phases '%standard-phases)
|
||||
|
|
|
@ -295,7 +295,7 @@ makefiles."
|
|||
(objcopy-command (if target
|
||||
(string-append target "-objcopy")
|
||||
"objcopy"))
|
||||
(strip-flags '("--strip-debug"))
|
||||
(strip-flags '("--strip-all"))
|
||||
(strip-directories '("lib" "lib64" "libexec"
|
||||
"bin" "sbin"))
|
||||
#:allow-other-keys)
|
||||
|
|
Loading…
Reference in New Issue