!10 fix build error for loongarch64

From: @zhangwenlong01 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
This commit is contained in:
openeuler-ci-bot 2024-06-13 12:09:32 +00:00 committed by Gitee
commit 996c53ab8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -32,7 +32,7 @@
Name: %{pkg_name} Name: %{pkg_name}
Version: %{openmp_version} Version: %{openmp_version}
Release: 1 Release: 2
Summary: OpenMP runtime for clang Summary: OpenMP runtime for clang
License: Apache License 2.0 License: Apache License 2.0
@ -111,7 +111,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%ifnarch %{arm} %ifnarch %{arm}
%{install_libdir}/libarcher.so %{install_libdir}/libarcher.so
%endif %endif
%ifnarch %{ix86} %{arm} riscv64 %ifnarch %{ix86} %{arm} riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver} %{install_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
%{install_libdir}/libomptarget.rtl.cuda.so.%{maj_ver} %{install_libdir}/libomptarget.rtl.cuda.so.%{maj_ver}
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver} %{install_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver}
@ -127,7 +127,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h %{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
%endif %endif
%ifnarch %{ix86} %{arm} %ifnarch %{ix86} %{arm}
%ifnarch riscv64 %ifnarch riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so %{install_libdir}/libomptarget.rtl.amdgpu.so
%{install_libdir}/libomptarget.rtl.cuda.so %{install_libdir}/libomptarget.rtl.cuda.so
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so %{install_libdir}/libomptarget.rtl.%{libomp_arch}.so
@ -139,6 +139,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/libomptarget.so %{install_libdir}/libomptarget.so
%changelog %changelog
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 17.0.6-2
- fix build error for loongarch64
* Mon Dec 4 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1 * Mon Dec 4 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
- Update to 17.0.6 - Update to 17.0.6