diff options
author | Zheng Junjie <z572@z572.online> | 2025-06-22 21:54:47 +0800 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:35 +0200 |
commit | ca2237bc541ccb72ef3b97acb22c983e9901513f (patch) | |
tree | caa3c72becfa82b77fc3295272d4a321586ac12a /gnu/packages/java.scm | |
parent | eb0029e1031abd0db30df625093efefbc568974a (diff) |
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
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r-- | gnu/packages/java.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 0f61730936..ac9e3b8a6a 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -959,7 +959,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") (string-append "--with-freetype=" (assoc-ref inputs "freetype")) "--disable-freetype-bundling" @@ -1192,7 +1194,7 @@ new Date();")) freetype giflib lcms - libelf + elfutils libjpeg-turbo libice libpng |