Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 1 | From 528a64d17488295299dad9fbfe3d7140bc1cfdfa Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 6 Feb 2021 11:06:48 -0800 |
| 4 | Subject: [PATCH] make: Add compiler includes in cflags |
| 5 | |
| 6 | Fixes |
| 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 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | src/Makefile.am | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 18 | index 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 | -- |
| 30 | 2.30.0 |
| 31 | |