dev-libs/beignet: fix multilib libdir detection for LLVM-4+
authorMarek Szuba <marecki@gentoo.org>
Tue, 19 Dec 2017 14:35:47 +0000 (15:35 +0100)
committerMarek Szuba <marecki@gentoo.org>
Tue, 19 Dec 2017 14:38:24 +0000 (15:38 +0100)
commit61d7e4919bfe1549ede7153efe859fa60ebe9294
tree96a5eeaa6b0c71725a5b965cc96728c833ef2bd2
parent09a99ef064cca02c7d2d0770d35ae34fdd455dd8
dev-libs/beignet: fix multilib libdir detection for LLVM-4+

By default Beignet CMake scripts look for LLVM parameters using
llvm-config regardless of target architecture. For multilib builds on
amd64 against >=sys-devel/llvm-4.0.0 this resulted in the linker being
passed the abi_x86_64 libdir in abi_x86_32 mode, causing "file in wrong
format" errors and build failures.

We now work around this issue by having Beignet's FindLLVM.cmake look
for ${CHOST}-llvm-config instead. Hopefully there will be an official
upstream fix for this at some point.

Closes: https://bugs.gentoo.org/638078
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-libs/beignet/beignet-1.3.2.ebuild
dev-libs/beignet/files/beignet-1.3.2_cmake-llvm-config-multilib.patch [new file with mode: 0644]