diff options
| -rw-r--r-- | gnu/packages/base.scm | 103 |
1 files changed, 52 insertions, 51 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index a9e97e03714..93019516a6d 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -693,62 +693,63 @@ 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 #~'(;; Add `-static-libgcc' to not retain a dependency | 711 | #:configure-flags |
| 712 | ;; on GCC when bootstrapping. | 712 | #~'( ;; Add `-static-libgcc' to not retain a dependency |
| 713 | "LDFLAGS=-static-libgcc" | 713 | ;; on GCC when bootstrapping. |
| 714 | 714 | "LDFLAGS=-static-libgcc" | |
| 715 | ;; Turn on --enable-new-dtags by default to make the | 715 | |
| 716 | ;; linker set RUNPATH instead of RPATH on binaries. | 716 | ;; Turn on --enable-new-dtags by default to make the |
| 717 | ;; This is important because RUNPATH can be overriden | 717 | ;; linker set RUNPATH instead of RPATH on binaries. |
| 718 | ;; using LD_LIBRARY_PATH at runtime. | 718 | ;; This is important because RUNPATH can be overriden |
| 719 | "--enable-new-dtags" | 719 | ;; using LD_LIBRARY_PATH at runtime. |
| 720 | 720 | "--enable-new-dtags" | |
| 721 | ;; Don't search under /usr/lib & co. | 721 | |
| 722 | "--with-lib-path=/no-ld-lib-path" | 722 | ;; Don't search under /usr/lib & co. |
| 723 | 723 | "--with-lib-path=/no-ld-lib-path" | |
| 724 | ;; Install BFD. It ends up in a hidden directory, | 724 | |
| 725 | ;; but it's here. | 725 | ;; Install BFD. It ends up in a hidden directory, |
| 726 | "--enable-install-libbfd" | 726 | ;; but it's here. |
| 727 | 727 | "--enable-install-libbfd" | |
| 728 | ;; Make sure 'ar' and 'ranlib' produce archives in a | 728 | |
| 729 | ;; deterministic fashion. | 729 | ;; Make sure 'ar' and 'ranlib' produce archives in a |
| 730 | "--enable-deterministic-archives" | 730 | ;; deterministic fashion. |
| 731 | 731 | "--enable-deterministic-archives" | |
| 732 | "--enable-64-bit-bfd" | 732 | |
| 733 | "--enable-compressed-debug-sections=all" | 733 | "--enable-64-bit-bfd" |
| 734 | "--enable-lto" | 734 | "--enable-compressed-debug-sections=all" |
| 735 | "--enable-separate-code" | 735 | "--enable-lto" |
| 736 | "--enable-threads") | 736 | "--enable-separate-code" |
| 737 | 737 | "--enable-threads") | |
| 738 | ;; For some reason, the build machinery insists on rebuilding .info | 738 | |
| 739 | ;; files, even though they're already provided by the tarball. | 739 | ;; For some reason, the build machinery insists on rebuilding .info |
| 740 | #:make-flags #~'("MAKEINFO=true"))) | 740 | ;; files, even though they're already provided by the tarball. |
| 741 | (native-inputs (list bison)) ;needed to build 'gprofng' | 741 | #:make-flags #~'("MAKEINFO=true"))) |
| 742 | (synopsis "Binary utilities: bfd gas gprof ld") | 742 | (native-inputs (list bison)) ;needed to build 'gprofng' |
| 743 | (description | 743 | (synopsis "Binary utilities: bfd gas gprof ld") |
| 744 | "GNU Binutils is a collection of tools for working with binary files. | 744 | (description |
| 745 | "GNU Binutils is a collection of tools for working with binary files. | ||
| 745 | Perhaps the most notable are \"ld\", a linker, and \"as\", an assembler. | 746 | Perhaps the most notable are \"ld\", a linker, and \"as\", an assembler. |
| 746 | Other tools include programs to display binary profiling information, list | 747 | Other tools include programs to display binary profiling information, list |
| 747 | the strings in a binary file, and utilities for working with archives. The | 748 | the strings in a binary file, and utilities for working with archives. The |
| 748 | \"bfd\" library for working with executable and object formats is also | 749 | \"bfd\" library for working with executable and object formats is also |
| 749 | included.") | 750 | included.") |
| 750 | (license gpl3+) | 751 | (license gpl3+) |
| 751 | (home-page "https://www.gnu.org/software/binutils/"))) | 752 | (home-page "https://www.gnu.org/software/binutils/"))) |
| 752 | 753 | ||
| 753 | ;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a | 754 | ;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a |
| 754 | ;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream). | 755 | ;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream). |
