Created attachment 643994 [details]
command used to compile kakoune source files
In the attachment, the command has -O3 after the -O2 that is set in CFLAGS.
Created attachment 643996 [details]
I saw this when I was testing for the keywording bug. Thanks for reporting it.
I saw it too, but because I didn't receive any QA notice about non-respecting CFLAGS, just figured it's only noise. However I guess the QA notice is triggered when your CFLAGS are replaced, not when something's appended to them.
Should be an easy patch nevertheless for the next release/snapshot.
Created attachment 644094 [details, diff]
ebuild patch to sed the makefile, found in contrib/ in the kakoune repo
The bug has been closed via the following commit(s):
Author: Jakov Smolic <firstname.lastname@example.org>
AuthorDate: 2021-04-30 16:08:13 +0000
Commit: Sam James <email@example.com>
CommitDate: 2021-05-04 22:17:01 +0000
app-editors/kakoune: Respect CFLAGS, fix gcc-11 compilation
Signed-off-by: Jakov Smolic <firstname.lastname@example.org>
Signed-off-by: Sam James <email@example.com>
.../kakoune/files/kakoune-2020.01.16-gcc-11.patch | 11 +++++++++
.../kakoune/kakoune-2020.01.16_p20200601.ebuild | 28 ++++++++++++++--------
2 files changed, 29 insertions(+), 10 deletions(-)