sys-libs/libomp: Fix testing using slotted clang
authorMichał Górny <mgorny@gentoo.org>
Mon, 6 Feb 2017 09:32:59 +0000 (10:32 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Feb 2017 12:47:11 +0000 (13:47 +0100)
sys-libs/libomp/libomp-4.0.0_rc1.ebuild
sys-libs/libomp/libomp-9999.ebuild

index 680d0a922d371aabd55318918ca6fa177d4ca7ca..7a493143c65bd94c98905157d4691b7755e49473 100644 (file)
@@ -60,7 +60,7 @@ multilib_src_configure() {
                -DLIBOMP_INSTALL_ALIASES=OFF
                # disable unnecessary hack copying stuff back to srcdir
                -DLIBOMP_COPY_EXPORTS=OFF
-               -DLIBOMP_TEST_COMPILER="${EPREFIX}/usr/bin/${CHOST}-clang"
+               -DLIBOMP_TEST_COMPILER="$(type -P "${CHOST}-clang")"
        )
        cmake-utils_src_configure
 }
index 2680d380a7f75679252dbe5d9dee1195e4ae03cd..420a84611862f9b59bc65fd3da8920134dc2194c 100644 (file)
@@ -61,7 +61,7 @@ multilib_src_configure() {
                -DLIBOMP_INSTALL_ALIASES=OFF
                # disable unnecessary hack copying stuff back to srcdir
                -DLIBOMP_COPY_EXPORTS=OFF
-               -DLIBOMP_TEST_COMPILER="${EPREFIX}/usr/bin/${CHOST}-clang"
+               -DLIBOMP_TEST_COMPILER="$(type -P "${CHOST}-clang")"
        )
        cmake-utils_src_configure
 }