mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
60d8e77f38
commit
f47993f0c7
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue