mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
Add libomp compat package support
This is not part of current rawhide sources, but based on libomp17 instead.
This commit is contained in:
parent
5868bd75d6
commit
318d6afcaa
3 changed files with 11 additions and 19 deletions
|
@ -96,8 +96,8 @@ popd
|
|||
\
|
||||
\
|
||||
\
|
||||
%if %{without compat_build}
|
||||
-DLIBOMP_INSTALL_ALIASES=OFF \
|
||||
%if %{without compat_build}
|
||||
%if 0%{?__isa_bits} == 64
|
||||
-DOPENMP_LIBDIR_SUFFIX=64 \
|
||||
%else
|
||||
|
|
|
@ -550,17 +550,15 @@
|
|||
|
||||
#region OPENMP files
|
||||
|
||||
%if %{without compat_build}
|
||||
|
||||
%files -n %{pkg_name_libomp}
|
||||
%license openmp/LICENSE.TXT
|
||||
%{_libdir}/libomp.so
|
||||
%{_libdir}/libompd.so
|
||||
%{_libdir}/libarcher.so
|
||||
%{install_libdir}/libomp.so
|
||||
%{install_libdir}/libompd.so
|
||||
%{install_libdir}/libarcher.so
|
||||
%ifnarch %{ix86}
|
||||
# libomptarget is not supported on 32-bit systems.
|
||||
# s390x does not support the offloading plugins.
|
||||
%{_libdir}/libomptarget.so.%{so_suffix}
|
||||
%{install_libdir}/libomptarget.so.%{so_suffix}
|
||||
%endif
|
||||
|
||||
%files -n %{pkg_name_libomp}-devel
|
||||
|
@ -570,16 +568,14 @@
|
|||
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
|
||||
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
|
||||
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
|
||||
%{_libdir}/cmake/openmp/
|
||||
%{install_libdir}/cmake/openmp/
|
||||
%ifnarch %{ix86}
|
||||
# libomptarget is not supported on 32-bit systems.
|
||||
# s390x does not support the offloading plugins.
|
||||
%{_libdir}/libomptarget.devicertl.a
|
||||
%{_libdir}/libomptarget-amdgpu-*.bc
|
||||
%{_libdir}/libomptarget-nvptx-*.bc
|
||||
%{_libdir}/libomptarget.so
|
||||
%endif
|
||||
|
||||
%{install_libdir}/libomptarget.devicertl.a
|
||||
%{install_libdir}/libomptarget-amdgpu-*.bc
|
||||
%{install_libdir}/libomptarget-nvptx-*.bc
|
||||
%{install_libdir}/libomptarget.so
|
||||
%endif
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -132,9 +132,7 @@
|
|||
|
||||
#region OPENMP globals
|
||||
|
||||
%if %{without compat_build}
|
||||
|
||||
%global pkg_name_libomp libomp
|
||||
%global pkg_name_libomp libomp%{pkg_suffix}
|
||||
|
||||
%global so_suffix %{maj_ver}.%{min_ver}
|
||||
|
||||
|
@ -148,8 +146,6 @@
|
|||
%global libomp_arch %{_arch}
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
#endregion
|
||||
|
||||
#region LLD globals
|
||||
|
|
Loading…
Reference in a new issue