From a2169a2f3d0113fe2876776d44d2434123738de1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 18 Sep 2016 00:02:39 +0300 Subject: [PATCH] disable _FORTIFY_SOURCE=2 See https://github.com/neovim/neovim/issues/223 for details. --- neovim.spec | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.44.0