From 1531c70cbbd8d5259095c12aa2a5aa7617e61c68 Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Sat, 23 Sep 2023 16:29:27 +0800 Subject: [PATCH] Fix clang build error. Add option in spec to solve the error. --- openjdk-latest.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjdk-latest.spec b/openjdk-latest.spec index 79021e2..f56db79 100644 --- a/openjdk-latest.spec +++ b/openjdk-latest.spec @@ -1336,6 +1336,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}\" \ -- Gitee