vim.spec: Set FORTIFY_SOURCE to 1 as Vim upstream expects

This commit is contained in:
Zdenek Dohnal 2023-01-05 08:33:48 +01:00
parent 57c70f241c
commit 345e5097bb

View File

@ -37,6 +37,12 @@
%define withruby 1
%endif
# VIm upstream wants to build with FORTIFY_SOURCE=1,
# because higher levels causes crashes of valid code constructs
# and their reimplementation would cost unnecessary maintenance
# https://github.com/vim/vim/pull/3507
%define _fortify_level 1
%define baseversion 9.0
%define vimdir vim90
@ -429,6 +435,8 @@ perl -pi -e "s/vimrc/virc/" os_unix.h
--disable-canberra \
--disable-libsodium
echo $CFLAGS
%make_build
cp vim minimal-vim
make clean