Skip to content

Commit

Permalink
mail-filter/procmail: fix building with clang
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/730846
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Stephan Hartmann <[email protected]>
Closes: gentoo#16595
Signed-off-by: Mikle Kolyada <[email protected]>
  • Loading branch information
stha09 authored and Zlogene committed Jul 16, 2020
1 parent f7ba30b commit a62b633
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mail-filter/procmail/procmail-3.22-r14.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}|" \
Expand Down

0 comments on commit a62b633

Please sign in to comment.