From: Elan Ruusamäe Date: Sat, 17 Sep 2016 21:02:39 +0000 (+0300) Subject: disable _FORTIFY_SOURCE=2 X-Git-Tag: auto/th/neovim-0.1.5-1~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fneovim.git;a=commitdiff_plain;h=a2169a2f3d0113fe2876776d44d2434123738de1 disable _FORTIFY_SOURCE=2 See https://github.com/neovim/neovim/issues/223 for details. --- diff --git a/neovim.spec b/neovim.spec index 26ecdf7..692ee11 100644 --- a/neovim.spec +++ b/neovim.spec @@ -41,6 +41,11 @@ Suggests: python3-neovim Suggests: xsel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# gcc 4.0 and better turn on _FORTIFY_SOURCE=2 automatically. This currently +# does not work with Neovim due to some uses of dynamically-sized structures. +# See https://github.com/neovim/neovim/issues/223 for details. +%define filterout_c -Wp,-D_FORTIFY_SOURCE=2 + %description Neovim is a refactor - and sometimes redactor - in the tradition of Vim, which itself derives from Stevie. It is not a rewrite, but a