gnu: icedtea-8: Fix build with gcc-14.

* gnu/packages/java.scm (icedtea-8)[arguments]: Extend CFLAGS to relax
gcc-14's strictness.

Change-Id: Ia7a53bfd1649c54505d7d2d033f9e984c531da90
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-05 16:09:16 +01:00 committed by Andreas Enge
parent cd352d551e
commit efb3675fd3
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -744,7 +744,11 @@ IcedTea build harness.")
(srfi srfi-26))) (srfi srfi-26)))
((#:configure-flags flags) ((#:configure-flags flags)
`(let ((jdk (assoc-ref %build-inputs "jdk"))) `(let ((jdk (assoc-ref %build-inputs "jdk")))
`("CFLAGS=-fcommon" `(,(string-append "CFLAGS=-fcommon"
" -Wno-error=implicit-function-declaration"
" -Wno-error=implicit-int"
" -Wno-error=incompatible-pointer-types"
" -Wno-error=int-conversion")
"CXXFLAGS=-fcommon" "CXXFLAGS=-fcommon"
"--enable-bootstrap" "--enable-bootstrap"
"--enable-nss" "--enable-nss"