diff options
author | Brian Evans <grknight@gentoo.org> | 2022-12-29 10:33:19 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2022-12-29 10:33:19 -0500 |
commit | 87007380eafc9e42710c4c7b8bad2236285ac4be (patch) | |
tree | 91dab70b91d281254a23136e6618c6dd4a16ba7d /mail-client/s-nail | |
parent | app-backup/rdiff-backup: add 2.2.2, drop 2.2.1 (diff) | |
download | gentoo-87007380eafc9e42710c4c7b8bad2236285ac4be.tar.gz gentoo-87007380eafc9e42710c4c7b8bad2236285ac4be.tar.bz2 gentoo-87007380eafc9e42710c4c7b8bad2236285ac4be.zip |
mail-client/s-nail: Ensure a -O value exists in CFLAGS
Bug: https://bugs.gentoo.org/888613
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.ebuild | 10 |
1 files changed, 10 insertions, 0 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 34059f4f450e..58bc90639ae8 100644 --- a/mail-client/s-nail/s-nail-14.9.24.ebuild +++ b/mail-client/s-nail/s-nail-14.9.24.ebuild @@ -33,8 +33,18 @@ BDEPEND=" " src_configure() { + has_cflag() { + local x var="CFLAGS[*]" + for x in ${!var} ; do + [[ ${x} == $1 ]] && return 0 + done + return 1 + } + # Fails to build without replace Bug 860357 replace-flags -O[0gs] -O1 + # A valid -O option is necessary Bug 888613 + has_cflag -O* || append-cflags -O1 append-cflags -std=c99 local confopts=( CC="$(tc-getCC)" |