1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: openjdk11: Fix build with gcc-14.

* gnu/packages/java.scm (openjdk11)[arguments]<#:phases>: Add
-Wno-error=int-conversion to with-extra-cflags.

Change-Id: I2facc12357b6fe4ace42c6a6369ea106df2d982f
This commit is contained in:
Zheng Junjie
2025-06-22 21:57:04 +08:00
committed by Andreas Enge
parent 0cbc920900
commit 0c151438dc

View File

@@ -1356,7 +1356,9 @@ new Date();"))
;; Add flags for compilation with gcc >= 10.
#$(string-append "--with-extra-cflags=-fcommon"
" -fno-delete-null-pointer-checks"
" -fno-lifetime-dse")
" -fno-lifetime-dse"
;; flags for compilation with gcc >= 14.
" -Wno-error=int-conversion")
;; Otherwise, the '--enable-fast-install' causes an error.
"--disable-option-checking"
"--disable-warnings-as-errors"