[packages/openjdk12] continue building with -std=gnu17

atler atler at pld-linux.org
Fri May 1 02:08:20 CEST 2026


commit 255cb8a3608ea6f8ed46f9d9d04832a8a129fd5b
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Apr 29 17:50:21 2026 +0200

    continue building with -std=gnu17
    
    c standard used during last successful build

 openjdk12.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openjdk12.spec b/openjdk12.spec
index bf18fd9..31a9692 100644
--- a/openjdk12.spec
+++ b/openjdk12.spec
@@ -375,8 +375,8 @@ chmod a+x configure
 %configure \
 	%{?with_zero:--with-jvm-variants=zero} \
 	--with-boot-jdk="%{java_home}" \
-	--with-extra-cflags="%{rpmcppflags} %{rpmcflags} -fcommon -O0" \
-	--with-extra-cxxflags="%{rpmcppflags} %{rpmcxxflags} -fcommon -O0" \
+	--with-extra-cflags="%{rpmcppflags} %{rpmcflags} -fcommon -fno-tree-dse -std=gnu17" \
+	--with-extra-cxxflags="%{rpmcppflags} %{rpmcxxflags} -fcommon -fno-tree-dse" \
 	--with-extra-ldflags="%{rpmldflags}" \
 	--with-jni-libpath="%{_libdir}/java %{_libdir} /%{_lib}" \
 	--with-jvm-features="%{?with_shenandoahgc:shenandoahgc}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjdk12.git/commitdiff/bee864ac914c0e383dfe281d229ac707d7b03f43



More information about the pld-cvs-commit mailing list