diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-07-20 04:22:38 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-07-20 13:05:22 +0200 |
| commit | f47993f0c70217028ee5f9373914ce6ea608db2b (patch) | |
| tree | f81b65417f447180b5c464d9e18ab076386ac9f9 /gnu/packages/dotnet.scm | |
| parent | 60d8e77f38a8ca1e7607b765581855a439a1645a (diff) | |
gnu: mono@1.9.1: Fix build with gcc 14.
* gnu/packages/dotnet.scm (mono-1.9.1)[make-flags]: Adjust CFLAGS.
[arguments]<#:phases>[set-flags]: Adjust CFLAGS.
Change-Id: I645bceb72f7353b3cbaa22dfbfe96ef249e51642
Diffstat (limited to 'gnu/packages/dotnet.scm')
| -rw-r--r-- | gnu/packages/dotnet.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/dotnet.scm b/gnu/packages/dotnet.scm index c361f7308f7..c5b156f8e4d 100644 --- a/gnu/packages/dotnet.scm +++ b/gnu/packages/dotnet.scm | |||
| @@ -444,7 +444,8 @@ a C-style programming language from Microsoft that is very similar to Java.") | |||
| 444 | (arguments | 444 | (arguments |
| 445 | (substitute-keyword-arguments (package-arguments mono-1.2.6) | 445 | (substitute-keyword-arguments (package-arguments mono-1.2.6) |
| 446 | ((#:make-flags _ #f) | 446 | ((#:make-flags _ #f) |
| 447 | #~(list #$(string-append "CC=" (cc-for-target)) | 447 | #~(list "CFLAGS=-O2 -g -DARG_MAX=500 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=return-mismatch " |
| 448 | #$(string-append "CC=" (cc-for-target)) | ||
| 448 | "NO_SIGN_ASSEMBLY=yes" ; non-reproducible otherwise. | 449 | "NO_SIGN_ASSEMBLY=yes" ; non-reproducible otherwise. |
| 449 | "V=1")) | 450 | "V=1")) |
| 450 | ((#:phases phases #~%standard-phases) | 451 | ((#:phases phases #~%standard-phases) |
| @@ -473,7 +474,11 @@ a C-style programming language from Microsoft that is very similar to Java.") | |||
| 473 | (let ((original (getenv "CFLAGS"))) | 474 | (let ((original (getenv "CFLAGS"))) |
| 474 | (setenv "CFLAGS" (string-append (or original "") | 475 | (setenv "CFLAGS" (string-append (or original "") |
| 475 | (if original " " "") | 476 | (if original " " "") |
| 476 | "-DARG_MAX=500"))))) | 477 | "-DARG_MAX=500 " |
| 478 | "-Wno-error=implicit-function-declaration " | ||
| 479 | "-Wno-error=incompatible-pointer-types " | ||
| 480 | "-Wno-error=implicit-int " | ||
| 481 | "-Wno-error=return-mismatch "))))) | ||
| 477 | (add-before 'configure 'set-create-image-version | 482 | (add-before 'configure 'set-create-image-version |
| 478 | (lambda _ | 483 | (lambda _ |
| 479 | ;; pnet produces v2.x assemblies. Mono does this weird thing | 484 | ;; pnet produces v2.x assemblies. Mono does this weird thing |
