diff --git a/libomp.spec b/libomp.spec index ea83fbc..66ffbb7 100644 --- a/libomp.spec +++ b/libomp.spec @@ -1,4 +1,4 @@ -%global toolchain clang +%global toolchain gcc %global maj_ver 15 %global libomp_version %{maj_ver}.0.1 @@ -14,7 +14,7 @@ Name: libomp Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: OpenMP runtime for clang License: NCSA @@ -75,6 +75,11 @@ OpenMP regression tests %build +%if "%toolchain" == "gcc" +# Building openmp with LTO fails with GCC but works with Clang +%define _lto_cflags %{nil} +%endif + %cmake -GNinja \ -DLIBOMP_INSTALL_ALIASES=OFF \ -DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \ @@ -160,6 +165,9 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %{_libexecdir}/tests/libomp/ %changelog +* Fri Oct 28 2022 Konrad Kleine - 15.0.1-2 +- Build libomp runtime library with gcc + * Thu Sep 29 2022 Konrad Kleine - 15.0.1-1 - 15.0.1 Release