diff --git a/vim.changes b/vim.changes index a505cd1..cb552c0 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 1 16:22:17 UTC 2025 - Friedrich Haubensak + +- add -std=gnu11 to CFLAGS to fix gcc15 compile time error, and to + still allow build on Leap 15.6 + ------------------------------------------------------------------- Sat Mar 29 15:25:13 UTC 2025 - Atri Bhattacharya diff --git a/vim.spec b/vim.spec index 4000216..f40a6dd 100644 --- a/vim.spec +++ b/vim.spec @@ -228,7 +228,9 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} . %build -export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing" +## about -std=gnu17 see github.com/vim/vim/issues/16575; +## use -std=gnu11 here to allow build on Leap 15.6 +export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing -std=gnu11" export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1} export COMMON_OPTIONS="\