Skip to content

Commit

Permalink
Use -isystem instead of -I to introduce header files of target system
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
root-hardenedvault authored and tlaurion committed Nov 1, 2020
1 parent 29b01eb commit b60f881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,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 := \
Expand Down

0 comments on commit b60f881

Please sign in to comment.