blob: 778d8301288fe21c54e7714de6a726b71af477cf [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001From 884ec4c654f1d07a387fdc1dae5640606369f254 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2021 10:56:36 -0800
4Subject: [PATCH] make: Add compiler includes in cflags
5
6Fixes
7 In file included from ../git/ubi-utils/ubiformat.c:47:
8| ../git/include/common.h:22:10: fatal error: 'stdbool.h' file not found
9| #include <stdbool.h>
10| ^~~~~~~~~~~
11
12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 Makefile.am | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/Makefile.am b/Makefile.am
19index 5a6e77c..f0003d5 100644
20--- a/Makefile.am
21+++ b/Makefile.am
22@@ -9,6 +9,7 @@ endif
23 if WITHOUT_LZO
24 AM_CPPFLAGS += -DWITHOUT_LZO
25 endif
26+AM_CPPFLAGS += -I$(shell $(CC) -print-file-name=include)
27
28 sbin_PROGRAMS =
29 sbin_SCRIPTS =
30--
312.30.0
32