diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-10-21 15:01:26 +0300 |
|---|---|---|
| committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2026-01-28 21:47:39 +0100 |
| commit | db01b0aee2733f852c24e70226944d0b561b0c7e (patch) | |
| tree | 8aa585f9cc66d8aa06033b80200e49a11b35482f | |
| parent | 482bf05c681f3575c7466423e2d7de2d4cb9f59b (diff) | |
gnu: file-boot0: Fix building on riscv64-linux.
* gnu/packages/commencement.scm (file)[configure-flags]: When building
for riscv64-linux disable the use of xz.
(file-boot0)[arguments]: When building for riscv64-linux adjust the
make-flags to pass a different CFLAG to build for C11.
Change-Id: I3c8a3f6882fd5c7dce7ba43785a1f1548fa984cb
| -rw-r--r-- | gnu/packages/commencement.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 4f6182cab8a..cbdadf839b1 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -2836,8 +2836,11 @@ exec " gcc "/bin/" program | |||
| 2836 | (inherit (@ (gnu packages file) file)) | 2836 | (inherit (@ (gnu packages file) file)) |
| 2837 | (arguments | 2837 | (arguments |
| 2838 | `(#:configure-flags | 2838 | `(#:configure-flags |
| 2839 | ;; XXX: List only added to prevent rebuilds! | 2839 | `("--disable-bzlib" |
| 2840 | `("--disable-bzlib" ,,@'()))))) | 2840 | ,,@(match (%current-system) |
| 2841 | ("riscv64-linux" | ||
| 2842 | '("--disable-xzlib")) | ||
| 2843 | (_ '()))))))) | ||
| 2841 | 2844 | ||
| 2842 | (define file-boot0 | 2845 | (define file-boot0 |
| 2843 | (package | 2846 | (package |
| @@ -2852,7 +2855,10 @@ exec " gcc "/bin/" program | |||
| 2852 | #:implicit-inputs? #f | 2855 | #:implicit-inputs? #f |
| 2853 | #:guile ,%bootstrap-guile | 2856 | #:guile ,%bootstrap-guile |
| 2854 | #:configure-flags '("--disable-bzlib") | 2857 | #:configure-flags '("--disable-bzlib") |
| 2855 | #:make-flags '("CFLAGS+=-std=c11") | 2858 | ;; riscv64's gcc-4.6.4 doesn't have full C11 support. |
| 2859 | #:make-flags ,(if (target-riscv64?) | ||
| 2860 | ''("CFLAGS+=-std=c1x") | ||
| 2861 | ''("CFLAGS+=-std=c11")) | ||
| 2856 | #:strip-binaries? #f | 2862 | #:strip-binaries? #f |
| 2857 | #:validate-runpath? #f | 2863 | #:validate-runpath? #f |
| 2858 | ,@(package-arguments file))))) | 2864 | ,@(package-arguments file))))) |
