]> git.pld-linux.org Git - packages/neovim.git/commitdiff
disable _FORTIFY_SOURCE=2
authorElan Ruusamäe <glen@delfi.ee>
Sat, 17 Sep 2016 21:02:39 +0000 (00:02 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 17 Sep 2016 21:02:39 +0000 (00:02 +0300)
See https://github.com/neovim/neovim/issues/223 for details.

neovim.spec

index 26ecdf74f58dbf40042b5a1aaf588dd534ccb44a..692ee11e0fd5088d3e430efce1fa52481dbf6455 100644 (file)
@@ -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
This page took 0.348315 seconds and 4 git commands to generate.