dev-libs/libclc: fix llvm-config path.
authorRobin H. Johnson <robbat2@gentoo.org>
Sat, 12 Aug 2017 19:47:06 +0000 (12:47 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Sat, 12 Aug 2017 19:49:39 +0000 (12:49 -0700)
clang path can be ccache-based, but llvm-config is not hooked by ccache,
so find it better ourselves.

Closes: https://bugs.gentoo.org/show_bug.cgi?id=624034
Package-Manager: portage-2.3.6
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild

index c0ac06980cb486c781af3c3979116e8de834214a..003757a0998e2b8c98da4e90737fd5f3df0f62fb 100644 (file)
@@ -39,13 +39,9 @@ DEPEND="${RDEPEND}
        ${PYTHON_DEPS}"
 
 src_configure() {
-       # we need to find llvm with matching clang version, so look for
-       # clang first, and then use llvm-config from the same location
-       local clang_path=$(type -P clang) || die
-
        ./configure.py \
                --with-cxx-compiler="$(tc-getCXX)" \
-               --with-llvm-config="${clang_path%/*}/llvm-config" \
+               --with-llvm-config="$(tc-getPROG LLVM_CONFIG llvm-config)" \
                --prefix="${EPREFIX}/usr" || die
 }