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.
This commit is contained in:
HardenedVault 2020-10-21 16:04:00 +02:00
parent 07cc2b64f5
commit 209c9778ad

View File

@ -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 := \