summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2022-12-27 09:11:43 -0500
committerBrian Evans <grknight@gentoo.org>2022-12-27 09:11:43 -0500
commit831e7bd103b23e933592b14b275d103d27625a41 (patch)
tree18c743118ececb93a7f839a784b9c13e4cabb07a /mail-client/s-nail
parentx11-themes/kvantum: add 1.0.7 (diff)
downloadgentoo-831e7bd103b23e933592b14b275d103d27625a41.tar.gz
gentoo-831e7bd103b23e933592b14b275d103d27625a41.tar.bz2
gentoo-831e7bd103b23e933592b14b275d103d27625a41.zip
mail-client/s-nail: Fix building with certain CFLAGS
Filter out -O[0sg] with replacement of -O1 Closes: https://bugs.gentoo.org/860357 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'mail-client/s-nail')
-rw-r--r--mail-client/s-nail/s-nail-14.9.24.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail-client/s-nail/s-nail-14.9.24.ebuild b/mail-client/s-nail/s-nail-14.9.24.ebuild
index 6d95aeba874e..34059f4f450e 100644
--- a/mail-client/s-nail/s-nail-14.9.24.ebuild
+++ b/mail-client/s-nail/s-nail-14.9.24.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit toolchain-funcs
+inherit toolchain-funcs flag-o-matic
HOMEPAGE="https://www.sdaoden.eu/code.html"
DESCRIPTION="Enhanced mailx-compatible mail client based on Heirloom mailx (nail)"
@@ -33,9 +33,11 @@ BDEPEND="
"
src_configure() {
+ # Fails to build without replace Bug 860357
+ replace-flags -O[0gs] -O1
+ append-cflags -std=c99
local confopts=(
CC="$(tc-getCC)"
- EXTRA_CFLAGS=-std=c99
strip=/bin/true
OPT_AUTOCC=no
VAL_PREFIX="${EPREFIX}"/usr