sci-libs/mkl: Sed pkg-config files to use llvm-runtimes/openmp

Given that we do not package Intel OpenMP and LLVM's implementation
seems compatible enough (and the ebuild already depended on it),
sed the pkg-config file to actually make it work.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-07-17 20:54:08 +02:00
parent 33bc20d7a6
commit 77ad099f41
+5
View File
@@ -56,6 +56,11 @@ src_install() {
rm -rv "opt/intel/oneapi/mkl/${PN_VER}"/share/{mkl/benchmarks,doc/mkl/examples} || die
fi
# Replace Intel OpenMP with LLVM OpenMP
sed -e '/Requires: openmp/d' \
-e '/Libs:/s:$: -lomp:' \
-i "${libroot}"/pkgconfig/*iomp.pc || die
# Symlink pkgconfig and cmake files
pushd "${libroot}/pkgconfig" >/dev/null || die
for file in *.pc; do