]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
vim: Don't try to build with custom _FORTIFY_SOURCE
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Feb 2024 16:46:06 +0000 (16:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Feb 2024 14:23:40 +0000 (14:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/vim

diff --git a/lfs/vim b/lfs/vim
index ea52c8e73f0ff6164ee7a11411547e9afc382646..19f6ec10a7ea68d7267f213eca615ed1b405155d 100644 (file)
--- a/lfs/vim
+++ b/lfs/vim
@@ -32,6 +32,10 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/vim90
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+# vim tries to build itself with FORTIFY_SOURCE=1 and is not very good at
+# filtering out any CFLAGS that might change that. So we do this ourselves.
+CFLAGS    := $(filter-out -Wp$(COMMA)-U_FORTIFY_SOURCE,$(CFLAGS))
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################