gnu: openjdk9: Fix build with gcc-14.

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

Change-Id: Ic880d6b416cfd07e8e22e9037d8d8812645b3a80
This commit is contained in:
Zheng Junjie 2025-06-22 21:54:47 +08:00 committed by Andreas Enge
parent eb0029e103
commit ca2237bc54
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -959,7 +959,9 @@ new Date();"))
;; Add flags for compilation with gcc >= 10 ;; Add flags for compilation with gcc >= 10
,(string-append "--with-extra-cflags=-fcommon" ,(string-append "--with-extra-cflags=-fcommon"
" -fno-delete-null-pointer-checks" " -fno-delete-null-pointer-checks"
" -fno-lifetime-dse") " -fno-lifetime-dse"
;; flags for compilation with gcc >= 14.
" -Wno-error=int-conversion")
(string-append "--with-freetype=" (string-append "--with-freetype="
(assoc-ref inputs "freetype")) (assoc-ref inputs "freetype"))
"--disable-freetype-bundling" "--disable-freetype-bundling"
@ -1192,7 +1194,7 @@ new Date();"))
freetype freetype
giflib giflib
lcms lcms
libelf elfutils
libjpeg-turbo libjpeg-turbo
libice libice
libpng libpng