1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-25 18:41:54 +02:00

gnu: binutils: Use zstd compression level 19.

* gnu/packages/base.scm (binutils) [#:phases]
{use-zstd-compression-level-19}: New phase.
(binutils-gold) [#:phases]
{use-zstd-compression-level-19-for-gold}: New phase.

Change-Id: I0e75329bb231dba39db61a880eb306c58c0acc11
This commit is contained in:
Maxim Cournoyer
2025-10-19 10:42:31 +09:00
parent 6f229017f5
commit 87a23070f2
+14
View File
@@ -736,6 +736,14 @@ change. GNU make offers many powerful extensions over the standard utility.")
"--enable-lto"
"--enable-separate-code"
"--enable-threads")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'use-zstd-compression-level-19
(lambda _
;; The default level (3) is hard-coded. Use a higher level to
;; compact debug sections as much as possible.
(substitute* "bfd/compress.c"
(("ZSTD_CLEVEL_DEFAULT") "19")))))
;; For some reason, the build machinery insists on rebuilding .info
;; files, even though they're already provided by the tarball.
@@ -795,6 +803,12 @@ included.")
(delete "LDFLAGS=-static-libgcc" #$flags)))
((#:phases phases '%standard-phases)
#~(modify-phases #$phases
(add-after 'unpack 'use-zstd-compression-level-19-for-gold
(lambda _
;; The default level (3) is hard-coded. Use a higher level to
;; compact debug sections as much as possible.
(substitute* "gold/compressed_output.cc"
(("ZSTD_CLEVEL_DEFAULT") "19"))))
(add-after 'patch-source-shebangs 'patch-more-shebangs
(lambda _
(substitute* "gold/Makefile.in"