summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-30 16:20:03 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-30 16:20:03 +0900
commit267c8648221f929f0b076bcaadb58c1ef6d64ef3 (patch)
treebc8795deef05ff9b527472951db3e73bfbfb46b1 /gnu/packages
parentb6323d3f1aabcaee9af20ba64dd55c60ef43c74e (diff)
Revert "gnu: binutils: Fix indentation."
This reverts commit afe80d2a6356f016d5e2a9f5efbb83d783593f9f.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/base.scm103
1 files changed, 51 insertions, 52 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 93019516a6d..a9e97e03714 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -693,63 +693,62 @@ change. GNU make offers many powerful extensions over the standard utility.")
693 693
694(define-public binutils 694(define-public binutils
695 (package 695 (package
696 (name "binutils") 696 (name "binutils")
697 (version "2.44") 697 (version "2.44")
698 (source 698 (source
699 (origin 699 (origin
700 (method url-fetch) 700 (method url-fetch)
701 (uri (string-append "mirror://gnu/binutils/binutils-" 701 (uri (string-append "mirror://gnu/binutils/binutils-"
702 version ".tar.bz2")) 702 version ".tar.bz2"))
703 (sha256 703 (sha256
704 (base32 "0fnwaasfglbphqzvz5n25js9gl695p7pjbmb1z81g8gsc6k90qzn")) 704 (base32 "0fnwaasfglbphqzvz5n25js9gl695p7pjbmb1z81g8gsc6k90qzn"))
705 (patches (search-patches 705 (patches (search-patches
706 "binutils-2.41-fix-cross.patch" 706 "binutils-2.41-fix-cross.patch"
707 "binutils-loongson-workaround.patch")))) 707 "binutils-loongson-workaround.patch"))))
708 (build-system gnu-build-system) 708 (build-system gnu-build-system)
709 (arguments 709 (arguments
710 (list #:out-of-source? #t ;recommended in the README 710 (list #:out-of-source? #t ;recommended in the README
711 #:configure-flags 711 #:configure-flags #~'(;; Add `-static-libgcc' to not retain a dependency
712 #~'( ;; Add `-static-libgcc' to not retain a dependency 712 ;; on GCC when bootstrapping.
713 ;; on GCC when bootstrapping. 713 "LDFLAGS=-static-libgcc"
714 "LDFLAGS=-static-libgcc" 714
715 715 ;; Turn on --enable-new-dtags by default to make the
716 ;; Turn on --enable-new-dtags by default to make the 716 ;; linker set RUNPATH instead of RPATH on binaries.
717 ;; linker set RUNPATH instead of RPATH on binaries. 717 ;; This is important because RUNPATH can be overriden
718 ;; This is important because RUNPATH can be overriden 718 ;; using LD_LIBRARY_PATH at runtime.
719 ;; using LD_LIBRARY_PATH at runtime. 719 "--enable-new-dtags"
720 "--enable-new-dtags" 720
721 721 ;; Don't search under /usr/lib & co.
722 ;; Don't search under /usr/lib & co. 722 "--with-lib-path=/no-ld-lib-path"
723 "--with-lib-path=/no-ld-lib-path" 723
724 724 ;; Install BFD. It ends up in a hidden directory,
725 ;; Install BFD. It ends up in a hidden directory, 725 ;; but it's here.
726 ;; but it's here. 726 "--enable-install-libbfd"
727 "--enable-install-libbfd" 727
728 728 ;; Make sure 'ar' and 'ranlib' produce archives in a
729 ;; Make sure 'ar' and 'ranlib' produce archives in a 729 ;; deterministic fashion.
730 ;; deterministic fashion. 730 "--enable-deterministic-archives"
731 "--enable-deterministic-archives" 731
732 732 "--enable-64-bit-bfd"
733 "--enable-64-bit-bfd" 733 "--enable-compressed-debug-sections=all"
734 "--enable-compressed-debug-sections=all" 734 "--enable-lto"
735 "--enable-lto" 735 "--enable-separate-code"
736 "--enable-separate-code" 736 "--enable-threads")
737 "--enable-threads") 737
738 738 ;; For some reason, the build machinery insists on rebuilding .info
739 ;; For some reason, the build machinery insists on rebuilding .info 739 ;; files, even though they're already provided by the tarball.
740 ;; files, even though they're already provided by the tarball. 740 #:make-flags #~'("MAKEINFO=true")))
741 #:make-flags #~'("MAKEINFO=true"))) 741 (native-inputs (list bison)) ;needed to build 'gprofng'
742 (native-inputs (list bison)) ;needed to build 'gprofng' 742 (synopsis "Binary utilities: bfd gas gprof ld")
743 (synopsis "Binary utilities: bfd gas gprof ld") 743 (description
744 (description 744 "GNU Binutils is a collection of tools for working with binary files.
745 "GNU Binutils is a collection of tools for working with binary files.
746Perhaps the most notable are \"ld\", a linker, and \"as\", an assembler. 745Perhaps the most notable are \"ld\", a linker, and \"as\", an assembler.
747Other tools include programs to display binary profiling information, list 746Other tools include programs to display binary profiling information, list
748the strings in a binary file, and utilities for working with archives. The 747the strings in a binary file, and utilities for working with archives. The
749\"bfd\" library for working with executable and object formats is also 748\"bfd\" library for working with executable and object formats is also
750included.") 749included.")
751 (license gpl3+) 750 (license gpl3+)
752 (home-page "https://www.gnu.org/software/binutils/"))) 751 (home-page "https://www.gnu.org/software/binutils/")))
753 752
754;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a 753;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a
755;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream). 754;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream).