Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 1 | --- a/kexec/Makefile |
| 2 | +++ b/kexec/Makefile |
| 3 | @@ -110,7 +110,7 @@ $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB) |
| 4 | @$(MKDIR) -p $(@D) |
| 5 | $(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS) |
| 6 | |
| 7 | -$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include |
| 8 | +$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include -I$(shell $(CC) -print-file-name=include) |
| 9 | |
| 10 | kexec/fs2dt.o: CPPFLAGS+=$($(ARCH)_FS2DT_INCLUDE) |
| 11 | |
| 12 | --- a/Makefile.in |
| 13 | +++ b/Makefile.in |
| 14 | @@ -46,7 +46,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@ |
| 15 | # Base compiler flags. These are extended by the subcomponent-Makefiles |
| 16 | # where necessary. |
| 17 | CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \ |
| 18 | - -Iinclude/ $($(ARCH)_CPPFLAGS) |
| 19 | + -Iinclude/ $($(ARCH)_CPPFLAGS) -I$(shell $(CC) -print-file-name=include) |
| 20 | CFLAGS = @CFLAGS@ -static -fno-strict-aliasing -Wall -Wstrict-prototypes |
| 21 | PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@ |
| 22 | ASFLAGS = @ASFLAGS@ $($(ARCH)_ASFLAGS) |