!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}
Version: %{openmp_version}
Release: 1
Release: 2
Summary: OpenMP runtime for clang
License: Apache License 2.0
@ -111,7 +111,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%ifnarch %{arm}
%{install_libdir}/libarcher.so
%endif
%ifnarch %{ix86} %{arm} riscv64
%ifnarch %{ix86} %{arm} riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
%{install_libdir}/libomptarget.rtl.cuda.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
%endif
%ifnarch %{ix86} %{arm}
%ifnarch riscv64
%ifnarch riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so
%{install_libdir}/libomptarget.rtl.cuda.so
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so
@ -139,6 +139,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/libomptarget.so
%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
- Update to 17.0.6