summaryrefslogtreecommitdiff
path: root/gnu/packages/base.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-19 10:41:59 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-30 16:13:01 +0900
commit16f0f497cdfef626c8f5960387037215b68d6a05 (patch)
treefbf6b5cf871188928e1ef7dc7798c8526ea12133 /gnu/packages/base.scm
parent3410d8bdc8be3c940a6e37aab44d419bc82c3578 (diff)
gnu: binutils: Enable zstd compression.
* gnu/packages/base.scm (binutils) [native-inputs]: Add pkg-config. [inputs]: Add zstd:lib. (binutils-gold) [#:phases] {set-LD_LIBRARY_PATH}: New phase. Change-Id: I344242724b5978c98dd20d8309de02702e78cf9a
Diffstat (limited to 'gnu/packages/base.scm')
-rw-r--r--gnu/packages/base.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 0045975ce95..a78478451dd 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -740,7 +740,10 @@ change. GNU make offers many powerful extensions over the standard utility.")
740 ;; For some reason, the build machinery insists on rebuilding .info 740 ;; For some reason, the build machinery insists on rebuilding .info
741 ;; files, even though they're already provided by the tarball. 741 ;; files, even though they're already provided by the tarball.
742 #:make-flags #~'("MAKEINFO=true"))) 742 #:make-flags #~'("MAKEINFO=true")))
743 (native-inputs (list bison)) ;needed to build 'gprofng' 743 (native-inputs
744 (list bison ;needed to build 'gprofng'
745 pkg-config))
746 (inputs (list `(,zstd "lib")))
744 (synopsis "Binary utilities: bfd gas gprof ld") 747 (synopsis "Binary utilities: bfd gas gprof ld")
745 (description 748 (description
746 "GNU Binutils is a collection of tools for working with binary files. 749 "GNU Binutils is a collection of tools for working with binary files.
@@ -796,6 +799,12 @@ included.")
796 (lambda _ 799 (lambda _
797 (substitute* "gold/Makefile.in" 800 (substitute* "gold/Makefile.in"
798 (("/bin/sh") (which "sh"))))) 801 (("/bin/sh") (which "sh")))))
802 (add-before 'check 'set-LD_LIBRARY_PATH
803 (lambda* (#:key inputs #:allow-other-keys)
804 ;; Some test binaries are linked with gold, which lack RUNPATH
805 ;; info due to not being linked with our ld-wrapper script.
806 (setenv "LD_LIBRARY_PATH"
807 (dirname (search-input-file inputs "lib/libzstd.so")))))
799 ;; Multiple failing tests on some architectures in the gold testsuite. 808 ;; Multiple failing tests on some architectures in the gold testsuite.
800 #$@(if (or (target-arm?) 809 #$@(if (or (target-arm?)
801 (target-ppc32?)) 810 (target-ppc32?))