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.") (arguments (substitute-keyword-arguments (package-arguments mono-1.2.6) ((#:make-flags _ #f) - #~(list #$(string-append "CC=" (cc-for-target)) + #~(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 " + #$(string-append "CC=" (cc-for-target)) "NO_SIGN_ASSEMBLY=yes" ; non-reproducible otherwise. "V=1")) ((#:phases phases #~%standard-phases) @@ -473,7 +474,11 @@ a C-style programming language from Microsoft that is very similar to Java.") (let ((original (getenv "CFLAGS"))) (setenv "CFLAGS" (string-append (or original "") (if original " " "") - "-DARG_MAX=500"))))) + "-DARG_MAX=500 " + "-Wno-error=implicit-function-declaration " + "-Wno-error=incompatible-pointer-types " + "-Wno-error=implicit-int " + "-Wno-error=return-mismatch "))))) (add-before 'configure 'set-create-image-version (lambda _ ;; pnet produces v2.x assemblies. Mono does this weird thing |
