diff options
author | Marek Szuba <marecki@gentoo.org> | 2016-09-19 13:59:28 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2016-09-19 14:00:19 +0200 |
commit | 84edfbb360a37db0b0837896e5cb738c02e1f64f (patch) | |
tree | 86b206e011709f7d5069ed3b16b3da3c95816bee /dev-libs/beignet | |
parent | net-libs/courier-authlib: fix courier-unicode dep, bump EAPI (diff) | |
download | gentoo-84edfbb360a37db0b0837896e5cb738c02e1f64f.tar.gz gentoo-84edfbb360a37db0b0837896e5cb738c02e1f64f.tar.bz2 gentoo-84edfbb360a37db0b0837896e5cb738c02e1f64f.zip |
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
Diffstat (limited to 'dev-libs/beignet')
-rw-r--r-- | dev-libs/beignet/beignet-1.2.0.ebuild | 8 |
1 files 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 0e6c87bcc164..ac2bb7d1957b 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. |