app-text/poppler: extend clang check to cover chost-clang as well

Package-Manager: portage-2.2.28
This commit is contained in:
Fabian Groffen
2016-09-04 19:16:40 +02:00
parent 12e01db59d
commit 3f6e76103f

View File

@@ -76,7 +76,7 @@ src_prepare() {
# Clang doesn't grok this flag, the configure nicely tests that, but
# cmake just uses it, so remove it if we use clang
if [[ ${CC} == clang ]] ; then
if [[ ${CC} == *clang ]] ; then
sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
fi