From 7c9f011df7c7a0d8e809e556f8495d04268d8b27 Mon Sep 17 00:00:00 2001 From: ridedolphin Date: Wed, 20 Sep 2023 03:41:28 +0000 Subject: [PATCH 1/3] update openjdk-latest.spec to make the clang compiler build successful. Add option in configure to solve the problem "error: A gcc compiler is required. Try setting --with-tools-dir." Signed-off-by: ridedolphin --- openjdk-latest.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjdk-latest.spec b/openjdk-latest.spec index bad206a..0dae703 100644 --- a/openjdk-latest.spec +++ b/openjdk-latest.spec @@ -1317,6 +1317,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 From 5069d9f6ac852f8aa5160548ade1cc75de1494bf Mon Sep 17 00:00:00 2001 From: ridedolphin Date: Wed, 20 Sep 2023 07:15:20 +0000 Subject: [PATCH 2/3] Revert "update openjdk-latest.spec to make the clang compiler build successful." This reverts commit 7c9f011df7c7a0d8e809e556f8495d04268d8b27. --- openjdk-latest.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/openjdk-latest.spec b/openjdk-latest.spec index 0dae703..bad206a 100644 --- a/openjdk-latest.spec +++ b/openjdk-latest.spec @@ -1317,9 +1317,6 @@ 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 From 4ab6e1a6e9706c761caeef04bda169a1bba09d88 Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Wed, 20 Sep 2023 16:06:15 +0800 Subject: [PATCH 3/3] Update spec to make the clang compiler build successful Add option in configure to solve the problem "error: A gcc compiler is required. Try setting --with-tools-dir." --- openjdk-latest.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjdk-latest.spec b/openjdk-latest.spec index bad206a..0dae703 100644 --- a/openjdk-latest.spec +++ b/openjdk-latest.spec @@ -1317,6 +1317,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