From d7ff90326bc73e1e58652b5b359a03670c1429cf Mon Sep 17 00:00:00 2001 From: Julien BERAUD Date: Wed, 25 Nov 2015 13:45:26 +0100 Subject: [PATCH] mk: Fix build with removed header files -MP "instructs CPP to add a phony target for each dependency other than the main file, causing each to depend on nothing. These dummy rules work around errors make gives if you remove header files without updating the Makefile to match." --- mk/board_native.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/board_native.mk b/mk/board_native.mk index 9bbde80cff..d22b043815 100644 --- a/mk/board_native.mk +++ b/mk/board_native.mk @@ -19,7 +19,7 @@ WARNFLAGSCXX = -Wno-reorder \ -Werror=uninitialized \ -Werror=init-self \ -Wno-missing-field-initializers -DEPFLAGS = -MD -MT $@ +DEPFLAGS = -MD -MP -MT $@ CXXOPTS = -ffunction-sections -fdata-sections -fno-exceptions -fsigned-char COPTS = -ffunction-sections -fdata-sections -fsigned-char