[packages/neovim] disable _FORTIFY_SOURCE=2

glen glen at pld-linux.org
Sat Sep 17 23:03:46 CEST 2016


commit a2169a2f3d0113fe2876776d44d2434123738de1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 18 00:02:39 2016 +0300

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/neovim.git/commitdiff/46240029af6be48964ef4129704801240bd56ef3



More information about the pld-cvs-commit mailing list