From ec3c2fdff21262db68c07debb7432ad5885ce08a Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Wed, 20 Sep 2023 19:04:37 +0800 Subject: [PATCH] Fix clang build error. Add option in spec to solve the error. --- openjdk-17.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openjdk-17.spec b/openjdk-17.spec index 3bd3bc8..2cece44 100644 --- a/openjdk-17.spec +++ b/openjdk-17.spec @@ -885,7 +885,7 @@ Provides: java-src%{?1} = %{epoch}:%{version}-%{release} Name: java-%{javaver}-%{origin} Version: %{newjavaver}.%{buildver} -Release: 1 +Release: 2 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages @@ -1335,6 +1335,9 @@ bash ../configure \ %endif %ifarch %{ppc64le} --with-jobs=1 \ +%endif +%if "%toolchain" == "clang" + --with-toolchain-type=clang \ %endif --with-version-build=%{buildver} \ --with-version-pre=\"${EA_DESIGNATOR}\" \ @@ -1771,6 +1774,9 @@ cjc.mainProgram(arg) %changelog +* Wed Sep 20 2023 yuzengqi - 1:17.0.7.7-0.2 +- Update spec to fix clang build error. + * Tue May 30 2023 wanghao_hw - 1:17.0.7.7-0.1 - add 8280872-Reorder-code-cache-segments-to-improv.patch -- Gitee