guix_mirror_bot pushed a commit to branch add-compress-debug-symbols-phase
in repository guix.

commit 27adf7f32e1c9c214dabdee6b00aae9e28d0ed85
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sun Oct 19 10:42:31 2025 +0900

    gnu: binutils: Use zstd compression level 19.
    
    * gnu/packages/base.scm (binutils) [#:phases]
    {use-zstd-compression-level-19}: New phase.
    
    Change-Id: I0e75329bb231dba39db61a880eb306c58c0acc11
---
 gnu/packages/base.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index b3b8d7aae2..7a5a4ff6e4 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -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.

Reply via email to