From 900e1c57229b896ee5824ec543560605df062e77 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 5 Feb 2024 16:46:06 +0000 Subject: [PATCH] vim: Don't try to build with custom _FORTIFY_SOURCE Signed-off-by: Michael Tremer --- lfs/vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs/vim b/lfs/vim index ea52c8e73f..19f6ec10a7 100644 --- 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 ############################################################################### -- 2.39.5