blob: abfd8b77eed669bc77fd0ab28c562651a9dc9ecc [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---
Patrick Williams520786c2023-06-25 16:20:36 -050014Upstream-Status: Pending
15
Andrew Geisslerac970dd2021-02-12 15:32:45 -060016 src/Makefile.am | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/Makefile.am b/src/Makefile.am
20index c75df23..d2adf38 100644
21--- a/src/Makefile.am
22+++ b/src/Makefile.am
23@@ -1,6 +1,6 @@
24 bin_PROGRAMS=kexecboot
25
26-kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
27+kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) -I$(shell $(CC) -print-file-name=include)
28
29 kexecboot_SOURCES = \
30 util.c \
31--
322.30.0
33