commit: 84edfbb360a37db0b0837896e5cb738c02e1f64f Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Mon Sep 19 11:59:28 2016 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Mon Sep 19 12:00:19 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84edfbb3
dev-libs/beignet: fix linking of 1.2.0 against LLVM-3.8 Without adding -fPIC to compiler flags one the temporary executables invoked at build time segfaults. Gentoo-Bug: 593968 Package-Manager: portage-2.3.1 dev-libs/beignet/beignet-1.2.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-libs/beignet/beignet-1.2.0.ebuild b/dev-libs/beignet/beignet-1.2.0.ebuild index 0e6c87b..ac2bb7d 100644 --- a/dev-libs/beignet/beignet-1.2.0.ebuild +++ b/dev-libs/beignet/beignet-1.2.0.ebuild @@ -7,7 +7,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 ) CMAKE_BUILD_TYPE="Release" -inherit python-any-r1 cmake-multilib toolchain-funcs +inherit python-any-r1 cmake-multilib flag-o-matic toolchain-funcs DESCRIPTION="OpenCL implementation for Intel GPUs" HOMEPAGE="https://01.org/beignet" @@ -25,12 +25,11 @@ else S=${WORKDIR}/Beignet-${PV}-Source fi -# Should support <sys-devel/llvm-3.9 but see Bug #593968 COMMON="${PYTHON_DEPS} media-libs/mesa sys-devel/clang >=sys-devel/llvm-3.5 - <sys-devel/llvm-3.8 + <sys-devel/llvm-3.9 x11-libs/libdrm[video_cards_intel] x11-libs/libXext x11-libs/libXfixes" @@ -66,6 +65,9 @@ pkg_setup() { } src_prepare() { + # See Bug #593968 + append-flags -fPIC + cmake-utils_src_prepare # We cannot run tests because they require permissions to access # the hardware, and building them is very time-consuming.
