From 9d1ac249d6b29b56fe7ab6289adcecb88c0ef786 Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Thu, 21 Sep 2023 21:14:47 +0800 Subject: [PATCH] Fix clang build error. Add option in spec to solve the error. (cherry picked from commit 1ae61ff66bf7f8cfe33273e88518124472aba380) --- openjdk-17.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjdk-17.spec b/openjdk-17.spec index 868a549..1c374ac 100644 --- a/openjdk-17.spec +++ b/openjdk-17.spec @@ -1374,6 +1374,9 @@ bash ../configure \ %ifnarch loongarch64 --with-vendor-version-string="%{vendor_version_string}" \ --with-vendor-name="openEuler Community" \ +%endif +%if "%toolchain" == "clang" + --with-toolchain-type=clang \ %endif --with-vendor-url="https://openeuler.org/" \ --with-vendor-bug-url="%{bug_url}" \ -- Gitee