diff --git a/build.spec.inc b/build.spec.inc index ec7970b..ef9d45d 100644 --- a/build.spec.inc +++ b/build.spec.inc @@ -45,6 +45,8 @@ cd llvm # force off shared libs as cmake macros turns it on. # TODO: Disable LLVM_UNREACHABLE_OPTIMIZE. # TODO: LIBOMP_HAVE_VERSION_SCRIPT_FLAG should be set automatically. +# TODO: Override LIBOMP_INSTALL_LIBDIR, because otherwise the libraries +# are installed to /usr/lib64/$TRIPLE and clang can't find them. %cmake -G Ninja \ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \ \ @@ -110,6 +112,7 @@ cd llvm -DOPENMP_LIBDIR_SUFFIX= \ %endif %endif + -DOPENMP_INSTALL_LIBDIR=%{_lib} \ \ \ \ diff --git a/globals.spec.inc b/globals.spec.inc index 4e4e2b0..36aa366 100644 --- a/globals.spec.inc +++ b/globals.spec.inc @@ -119,10 +119,10 @@ %global pkg_name_libomp libomp -%global so_suffix %{maj_ver} +%global so_suffix %{maj_ver}.%{min_ver} %if %{with snapshot_build} -%global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix} +%global so_suffix %{maj_ver}.%{min_ver}%{llvm_snapshot_version_suffix} %endif %ifarch ppc64le