diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-13 19:12:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-13 19:12:15 +0000 |
commit | a7ec94f7d22ee22df2e424c1d3f842510b7993aa (patch) | |
tree | f35dc4a8ebf81ae4e8802aa6d4347ce28a1e25f5 /sys-libs/libomp/libomp-18.0.0.9999.ebuild | |
parent | 7860ad41012a3808c645607818b64ad7dab025e9 (diff) |
gentoo auto-resync : 13:01:2024 - 19:12:15
Diffstat (limited to 'sys-libs/libomp/libomp-18.0.0.9999.ebuild')
-rw-r--r-- | sys-libs/libomp/libomp-18.0.0.9999.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys-libs/libomp/libomp-18.0.0.9999.ebuild b/sys-libs/libomp/libomp-18.0.0.9999.ebuild index 960f9ce8087f..1d41ecc498a1 100644 --- a/sys-libs/libomp/libomp-18.0.0.9999.ebuild +++ b/sys-libs/libomp/libomp-18.0.0.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -117,6 +117,13 @@ multilib_src_configure() { ) if [[ ${build_omptarget} == ON ]]; then + local ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) + local ffi_ldflags=$($(tc-getPKG_CONFIG) --libs-only-L libffi) + mycmakeargs+=( + -DFFI_INCLUDE_DIR="${ffi_cflags#-I}" + -DFFI_LIBRARY_DIR="${ffi_ldflags#-L}" + ) + if has "${CHOST%%-*}" aarch64 powerpc64le x86_64; then mycmakeargs+=( -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=$(usex llvm_targets_AMDGPU) |