--- procmail-3.22-r10.ebuild.orig 2015-01-10 20:55:45.741238398 +0100 +++ procmail-3.22-r10.ebuild 2015-01-10 20:53:58.325867496 +0100 @@ -65,7 +65,11 @@ # -finline-functions (implied by -O3) leaves strstr() in an infinite loop. # To work around this, we append -fno-inline-functions to CFLAGS # Since GCC 4.7 we also need -fno-ipa-cp-clone (bug #466552) - append-flags -fno-inline-functions -fno-ipa-cp-clone + # If it's clang, ignore -fno-ipa-cp-clone, as clang doesn't support this + case "$(tc-getCC)" in + "clang") append-flags -fno-inline-functions;; + "gcc"|*) append-flags -fno-inline-functions -fno-ipa-cp-clone;; + esac sed -e "s:CFLAGS0 = -O:CFLAGS0 = ${CFLAGS}:" \ -e "s:LDFLAGS0= -s:LDFLAGS0 = ${LDFLAGS}:" \