blob: 29ea1d9f1898f3a6edfcce644948dfc0fe7fc1fa [file] [log] [blame]
Patrick Williams520786c2023-06-25 16:20:36 -05001Upstream-Status: Pending
2
Andrew Geisslerac970dd2021-02-12 15:32:45 -06003--- a/kexec/Makefile
4+++ b/kexec/Makefile
5@@ -110,7 +110,7 @@ $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB)
6 @$(MKDIR) -p $(@D)
7 $(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS)
8
9-$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include
10+$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include -I$(shell $(CC) -print-file-name=include)
11
12 kexec/fs2dt.o: CPPFLAGS+=$($(ARCH)_FS2DT_INCLUDE)
13
14--- a/Makefile.in
15+++ b/Makefile.in
16@@ -46,7 +46,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@
17 # Base compiler flags. These are extended by the subcomponent-Makefiles
18 # where necessary.
19 CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \
20- -Iinclude/ $($(ARCH)_CPPFLAGS)
21+ -Iinclude/ $($(ARCH)_CPPFLAGS) -I$(shell $(CC) -print-file-name=include)
22 CFLAGS = @CFLAGS@ -static -fno-strict-aliasing -Wall -Wstrict-prototypes
23 PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@
24 ASFLAGS = @ASFLAGS@ $($(ARCH)_ASFLAGS)