diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-01-11 13:50:30 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:44:23 +0200 |
| commit | 77ee97628a2d126a31f60d4ca8fafa70a66be804 (patch) | |
| tree | 9565b13511fe4bd981d5990903612e8e0e02fe34 /gnu/packages/make-bootstrap.scm | |
| parent | f9f2198d82f6aa7147700bed3f9d42a93201d620 (diff) | |
gnu: binutils: Use gexps.
This is the result of applying ‘guix style -S arguments’ and making
small adjustments.
* gnu/packages/base.scm (binutils)[arguments]: Use gexps.
(binutils-2.33, binutils-gold): Likewise.
* gnu/packages/commencement.scm (binutils-mesboot0, binutils-mesboot1)
(binutils-boot0, binutils-final): Likewise.
* gnu/packages/cross-base.scm (cross-binutils*): Adjust accordingly.
* gnu/packages/embedded.scm (make-propeller-binutils): Use gexps.
* gnu/packages/make-bootstrap.scm (%binutils-static): Use gexps.
Change-Id: I59cbe29760784b09e6d4e80beca9153cb9b495a7
Diffstat (limited to 'gnu/packages/make-bootstrap.scm')
| -rw-r--r-- | gnu/packages/make-bootstrap.scm | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index 1b5939b9524..7dc1743aeaa 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm | |||
| @@ -375,32 +375,34 @@ for `sh' in $PATH, and without nscd, and with static NSS modules." | |||
| 375 | 375 | ||
| 376 | (define %binutils-static | 376 | (define %binutils-static |
| 377 | ;; Statically-linked Binutils. | 377 | ;; Statically-linked Binutils. |
| 378 | (package (inherit binutils) | 378 | (package |
| 379 | (inherit binutils) | ||
| 379 | (name "binutils-static") | 380 | (name "binutils-static") |
| 380 | (arguments | 381 | (arguments |
| 381 | `(#:configure-flags (cons "--disable-gold" | 382 | (list #:configure-flags |
| 382 | ,(match (memq #:configure-flags | 383 | #~(cons "--disable-gold" |
| 383 | (package-arguments binutils)) | 384 | #$(match (memq #:configure-flags (package-arguments binutils)) |
| 384 | ((#:configure-flags flags _ ...) | 385 | ((#:configure-flags flags _ ...) |
| 385 | flags))) | 386 | flags))) |
| 386 | #:make-flags ,(match (memq #:make-flags (package-arguments binutils)) | 387 | #:make-flags |
| 387 | ((#:make-flags flags _ ...) | 388 | (match (memq #:make-flags (package-arguments binutils)) |
| 388 | flags) | 389 | ((#:make-flags flags _ ...) |
| 389 | (_ ''())) | 390 | flags) |
| 390 | #:strip-flags '("--strip-all") | 391 | (_ #~'())) |
| 391 | #:phases (modify-phases %standard-phases | 392 | #:strip-flags #~'("--strip-all") |
| 392 | (add-before 'configure 'all-static | 393 | #:phases |
| 393 | (lambda _ | 394 | #~(modify-phases %standard-phases |
| 394 | ;; The `-all-static' libtool flag can only be passed | 395 | (add-before 'configure 'all-static |
| 395 | ;; after `configure', since configure tests don't use | 396 | (lambda _ |
| 396 | ;; libtool, and only for executables built with libtool. | 397 | ;; The `-all-static' libtool flag can only be passed after |
| 397 | (substitute* '("binutils/Makefile.in" | 398 | ;; `configure', since configure tests don't use libtool, |
| 398 | "gas/Makefile.in" | 399 | ;; and only for executables built with libtool. |
| 399 | "ld/Makefile.in") | 400 | (substitute* '("binutils/Makefile.in" |
| 400 | (("^LDFLAGS =(.*)$" line) | 401 | "gas/Makefile.in" "ld/Makefile.in") |
| 401 | (string-append line | 402 | (("^LDFLAGS =(.*)$" line) |
| 402 | "\nAM_LDFLAGS = -static -all-static\n"))) | 403 | (string-append |
| 403 | #t))))))) | 404 | line |
| 405 | "\nAM_LDFLAGS = -static -all-static\n")))))))))) | ||
| 404 | 406 | ||
| 405 | (define %binutils-static-stripped | 407 | (define %binutils-static-stripped |
| 406 | ;; The subset of Binutils that we need. | 408 | ;; The subset of Binutils that we need. |
