From 209c9778ad968d9f6e6b5255d5fe28c94e803e33 Mon Sep 17 00:00:00 2001 From: HardenedVault Date: Wed, 21 Oct 2020 16:04:00 +0200 Subject: [PATCH] Use -isystem instead of -I to introduce header files of target system If using -I to introduce header files, the elf.h in the target system instead of elf.h shipped with kexec-tools will be included, making its building process failed. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a0bda55b..23ffbfa6 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ heads_cc := $(CROSS)gcc \ -fdebug-prefix-map=$(pwd)=heads \ -gno-record-gcc-switches \ -D__MUSL__ \ - -I$(INSTALL)/include \ + -isystem $(INSTALL)/include \ -L$(INSTALL)/lib \ CROSS_TOOLS_NOCC := \