From 66ec83fe15d89dde43ce9bc25c8423c7ccbc0cc7 Mon Sep 17 00:00:00 2001 From: yueyaoqiang Date: Thu, 25 Jan 2024 14:05:31 +0800 Subject: [PATCH] add loongarch and sw for compile parameter --- add_loongarch_sw_for_compile_parameter.patch | 12 ++++++++++++ openEuler-rpm-config.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 add_loongarch_sw_for_compile_parameter.patch diff --git a/add_loongarch_sw_for_compile_parameter.patch b/add_loongarch_sw_for_compile_parameter.patch new file mode 100644 index 0000000..916441b --- /dev/null +++ b/add_loongarch_sw_for_compile_parameter.patch @@ -0,0 +1,12 @@ +diff -Naur openEuler-rpm-config/rpmrc openEuler-rpm-config_bak/rpmrc +--- openEuler-rpm-config/rpmrc 2020-08-20 17:13:06.000000000 +0800 ++++ openEuler-rpm-config_bak/rpmrc 2024-01-25 11:52:43.779834640 +0800 +@@ -7,6 +7,8 @@ + + optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection ++optflags: loongarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection ++optflags: sw_64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + + buildarchtranslate: athlon: i686 + buildarchtranslate: geode: i686 diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 61a947a..1c90dc5 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 30 -Release: 36 +Release: 37 License: GPL+ Summary: specific rpm configuration files URL: https://gitee.com/openeuler/openEuler-rpm-config @@ -29,6 +29,7 @@ Patch15: 0001-add-loongarch64-for-golang_arches.patch Patch16: fix-config-error-for-loongarch64.patch Patch17: check-if-the-file-is-a-symbolic-link-in-brp-digest-list.patch Patch18: fix-the-ELF-file-cannot-be-found-due-to-escape-of.patch +Patch19: add_loongarch_sw_for_compile_parameter.patch Provides: python-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} Provides: python2-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} @@ -131,6 +132,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir %{rpmvdir}/find-requires.ksyms %changelog +* Thu Jan 25 2024 yueyaoqiang - 30-37 +- fix loongarch and sw for compile parameter + * Tue Nov 21 2023 xujing - 30-36 - add the scanning path of the rpath fix the ELF file cannot be found due to escape of '\' -- Gitee