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 8797553a21ecfc1518ac6920bcf4b0d21040fc05 Mon Sep 17 00:00:00 2001 From: yuzengqi Date: Wed, 20 Sep 2023 15:04:53 +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 +++ tags | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tags 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}\" \ diff --git a/tags b/tags new file mode 100644 index 0000000..dea5b87 --- /dev/null +++ b/tags @@ -0,0 +1,12 @@ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/ +!_TAG_PROGRAM_NAME Exuberant Ctags // +!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ +!_TAG_PROGRAM_VERSION 5.8 // +TestCryptoLevel TestCryptoLevel.java /^public class TestCryptoLevel$/;" kind:c line:25 +TestCryptoLevel.main TestCryptoLevel.java /^ public static void main(String[] args)$/;" kind:m line:27 class:TestCryptoLevel access:public signature:(String[] args) +TestECDSA TestECDSA.java /^public class TestECDSA {$/;" kind:c line:26 +TestECDSA.main TestECDSA.java /^ public static void main(String[] args) throws Exception {$/;" kind:m line:28 class:TestECDSA access:public signature:(String[] args) +main TestCryptoLevel.java /^ public static void main(String[] args)$/;" kind:m line:27 class:TestCryptoLevel access:public signature:(String[] args) +main TestECDSA.java /^ public static void main(String[] args) throws Exception {$/;" kind:m line:28 class:TestECDSA access:public signature:(String[] args) -- Gitee