[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/40: gnu: commencement: static-bash-for-glibc Fix x86-linux build.
From: |
guix-commits |
Subject: |
24/40: gnu: commencement: static-bash-for-glibc Fix x86-linux build. |
Date: |
Tue, 10 Dec 2024 08:30:15 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 136591bc1056999a6747db7ee96d92b7265e5045
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Dec 5 16:19:03 2024 +0100
gnu: commencement: static-bash-for-glibc Fix x86-linux build.
* gnu/packages/commencement.scm (static-bash-for-glibc): When building for
x86-linux, add CFLAGS to #:configure-flags to relax gcc-14's strictness.
Change-Id: I39f84c405c655f235841fc310e6465853dafeba7
---
gnu/packages/commencement.scm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 1f8e7d9de3..22eacd2bdc 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3065,13 +3065,17 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker
-Wl,~a/~a \"$@\"~%"
,@(substitute-keyword-arguments (package-arguments static-bash)
((#:configure-flags flags #~'())
- ;; Add a '-L' flag so that the pseudo-cross-ld of
- ;; BINUTILS-BOOT0 can find libc.a.
- #~(append #$flags
- (list (string-append "LDFLAGS=-static -L"
- (assoc-ref %build-inputs
- "libc:static")
- "/lib")))))))))
+ #~(append
+ #$flags
+ #$(if (target-linux?)
+ #~'("CFLAGS=-g -O2 -Wno-implicit-function-declaration")
+ #~'())
+ ;; Add a '-L' flag so that the pseudo-cross-ld of
+ ;; BINUTILS-BOOT0 can find libc.a.
+ (list (string-append "LDFLAGS=-static -L"
+ (assoc-ref %build-inputs
+ "libc:static")
+ "/lib")))))))))
(define gettext-boot0
;; A minimal gettext used during bootstrap.
- branch core-packages-team created (now 644019dcfe), guix-commits, 2024/12/10
- 02/40: Revert "Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so."", guix-commits, 2024/12/10
- 06/40: gnu: commencement: gcc-boot0: Fix build for x86-linux with gcc-14., guix-commits, 2024/12/10
- 01/40: Revert "Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd."", guix-commits, 2024/12/10
- 24/40: gnu: commencement: static-bash-for-glibc Fix x86-linux build.,
guix-commits <=
- 13/40: gnu: gettext: Fix build with gcc-14., guix-commits, 2024/12/10
- 26/40: gnu: guile-lzlib: Fix build with gcc-14., guix-commits, 2024/12/10
- 33/40: gnu: llvm-13: Fix build with gcc-14., guix-commits, 2024/12/10
- 21/40: gnu: elfutils: Update to 0.192; fixing build with gcc-14., guix-commits, 2024/12/10
- 04/40: gnu: %bootstrap-glibc: Patch more files., guix-commits, 2024/12/10
- 10/40: gnu: libffi: Fix build for x86_64-linux with gcc-14., guix-commits, 2024/12/10
- 30/40: gnu: xmlto: Fix build with gcc-14., guix-commits, 2024/12/10
- 29/40: gnu: python-lxml: Update to 5.2.2; fixing build with gcc-14., guix-commits, 2024/12/10
- 38/40: DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14., guix-commits, 2024/12/10
- 35/40: gnu: libxaw3d: Update to 1.6.6, fixes build with gcc-14., guix-commits, 2024/12/10