From b91c77b27568409414f5e06bedb56e3d427aa3058cf4b01453a3a81e1ac9da8d Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 4 Apr 2025 08:15:58 +0000 Subject: [PATCH] Accepting request 1266275 from home:hsk17:branches:editors add -std=gnu11 to CFLAGS to fix gcc15 compile time error, and to still allow build on Leap 15.6 OBS-URL: https://build.opensuse.org/request/show/1266275 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=887 --- vim.changes | 6 ++++++ vim.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) 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="\