commit:     a62b633c5c4c9963162355f1be96c7c28ced1f9b
Author:     Stephan Hartmann <stha09 <AT> googlemail <DOT> com>
AuthorDate: Sun Jul  5 11:38:20 2020 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Thu Jul 16 08:45:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a62b633c

mail-filter/procmail: fix building with clang

Closes: https://bugs.gentoo.org/730846
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/16595
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 mail-filter/procmail/procmail-3.22-r14.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mail-filter/procmail/procmail-3.22-r14.ebuild 
b/mail-filter/procmail/procmail-3.22-r14.ebuild
index 3abc7cf7a8a..1d902b0f862 100644
--- a/mail-filter/procmail/procmail-3.22-r14.ebuild
+++ b/mail-filter/procmail/procmail-3.22-r14.ebuild
@@ -69,10 +69,8 @@ src_compile() {
        # To work around this, we append -fno-inline-functions to CFLAGS
        # Since GCC 4.7 we also need -fno-ipa-cp-clone (bug #466552)
        # 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
+       append-flags -fno-inline-functions
+       tc-is-clang || append-flags -fno-ipa-cp-clone
 
        sed -e "s|CFLAGS0 = -O|CFLAGS0 = ${CFLAGS}|" \
                -e "s|LDFLAGS0= -s|LDFLAGS0 = ${LDFLAGS}|" \

Reply via email to