https://bugs.gentoo.org/show_bug.cgi?id=595878
export INSTALL_LINK="ln -f"
export INSTALL_SYMLINK="ln -fs"
fi
+
+ # When CC=clang, force use clang-cpp #478810, #595878
+ if [[ $(tc-getCC) == *clang* ]] ; then
+ if type -P clang-cpp > /dev/null ; then
+ export CPP=clang-cpp
+ else
+ mkdir "${WORKDIR}"/workaround_clang-cpp || die "Could not create ${WORKDIR}/workaround_clang-cpp"
+ ln -s "$(type -P clang)" "${WORKDIR}"/workaround_clang-cpp/clang-cpp || die "Could not create clang-cpp symlink."
+ export CPP="${WORKDIR}/workaround_clang-cpp/clang-cpp"
+ fi
+ fi
}
freebsd_src_compile() {