From f27d44daacb7a5c0d864f03297100ca91d1444de Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Thu, 21 Sep 2023 21:14:47 +0800 Subject: [PATCH] fixed 1ae61ff from https://gitee.com/ridedolphin/openjdk-17/pulls/48 Fix clang build error. Add option in spec to solve the error. --- 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