summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-14 18:31:50 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-14 18:38:09 +0100
commit32eafe028f4d665efca2ef3b8405a9ff2aad1a9f (patch)
tree4bb0a190516fa9a1099ca8fc4cb8edd523f9ed3c /dev-libs/libclc
parentapp-emulation/qt-virt-manager: Introduce qt-virt-manager, bug #598932 (diff)
downloadgentoo-32eafe028f4d665efca2ef3b8405a9ff2aad1a9f.tar.gz
gentoo-32eafe028f4d665efca2ef3b8405a9ff2aad1a9f.tar.bz2
gentoo-32eafe028f4d665efca2ef3b8405a9ff2aad1a9f.zip
dev-libs/libclc: Respect CXX to fix C++ stdlib incompat, #612582
Force using the correct C++ compiler via passing --with-cxx-compiler= to the configure script. Otherwise, libclc defaults to using clang++ which can cause compatibility issues when clang++ defaults to libc++ and LLVM was built using gcc. This does not affect the compiler used to build the runtime.
Diffstat (limited to 'dev-libs/libclc')
-rw-r--r--dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild
index 016da1ccc2b4..a3f5bf3c2c7c 100644
--- a/dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild
+++ b/dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild
@@ -15,7 +15,7 @@ else
GIT_ECLASS="vcs-snapshot"
fi
-inherit python-any-r1 ${GIT_ECLASS}
+inherit python-any-r1 toolchain-funcs ${GIT_ECLASS}
DESCRIPTION="OpenCL C library"
HOMEPAGE="http://libclc.llvm.org/"
@@ -40,6 +40,7 @@ DEPEND="${RDEPEND}
src_configure() {
./configure.py \
+ --with-cxx-compiler="$(tc-getCXX)" \
--with-llvm-config="$(type -P llvm-config)" \
--prefix="${EPREFIX}/usr" || die
}