summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <stha09@googlemail.com>2020-07-05 13:38:20 +0200
committerMikle Kolyada <zlogene@gentoo.org>2020-07-16 11:45:21 +0300
commita62b633c5c4c9963162355f1be96c7c28ced1f9b (patch)
treeb27e09868048579698c651c46c435af67b01daa6
parentsys-libs/liburing: Fixed "ebuild has trailing blank line" QA issue (diff)
downloadgentoo-a62b633c5c4c9963162355f1be96c7c28ced1f9b.tar.gz
gentoo-a62b633c5c4c9963162355f1be96c7c28ced1f9b.tar.bz2
gentoo-a62b633c5c4c9963162355f1be96c7c28ced1f9b.zip
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@googlemail.com> Closes: https://github.com/gentoo/gentoo/pull/16595 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
-rw-r--r--mail-filter/procmail/procmail-3.22-r14.ebuild6
1 files 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}|" \