SHA256
8
0
forked from pool/vim
2025-04-07 15:34:59 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 1 16:22:17 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- 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 <badshah400@gmail.com> Sat Mar 29 15:25:13 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -228,7 +228,9 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} . cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
%build %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 CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
export COMMON_OPTIONS="\ export COMMON_OPTIONS="\