mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user