blob: 931d0fa584683d44abf03815f9ce98056b10b090 [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001From 528a64d17488295299dad9fbfe3d7140bc1cfdfa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2021 11:06:48 -0800
4Subject: [PATCH] make: Add compiler includes in cflags
5
6Fixes
7| In file included from /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/kexecboot-klibc/0.6+gitAUTOINC+5a5e04be20-r0/recipe-sysroot/usr/lib/klibc/include/stdio.h:11:
8| /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/kexecboot-klibc/0.6+gitAUTOINC+5a5e04be20-r0/recipe-sysroot/usr/lib/klibc/include/stdarg.h:9:15: fatal error: 'stdarg.h' file not found
9| #include_next <stdarg.h>
10| ^~~~~~~~~~
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/Makefile.am | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/Makefile.am b/src/Makefile.am
18index c75df23..d2adf38 100644
19--- a/src/Makefile.am
20+++ b/src/Makefile.am
21@@ -1,6 +1,6 @@
22 bin_PROGRAMS=kexecboot
23
24-kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
25+kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) -I$(shell $(CC) -print-file-name=include)
26
27 kexecboot_SOURCES = \
28 util.c \
29--
302.30.0
31