app-text/poppler: extend clang check to cover chost-clang as well
authorFabian Groffen <grobian@gentoo.org>
Sun, 4 Sep 2016 17:16:40 +0000 (19:16 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 4 Sep 2016 17:16:40 +0000 (19:16 +0200)
Package-Manager: portage-2.2.28

app-text/poppler/poppler-0.47.0.ebuild

index df6663999aa70ee78f1fed5747d4757ad8b6f520..b681b6f95e525ca2df3e09788d21debab2f05185 100644 (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