Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From 4b4147b76518d31a88fb2c58cdbf2236e159a25c Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 8 Sep 2017 23:10:54 -0700 |
| 4 | Subject: [PATCH] Kbuild.klibc: Add path to compiler headers via -isystem |
| 5 | |
| 6 | We need to include this path so it can find compiler headers e.g. |
| 7 | stdarg.h which is called from wrapper stdarg.h using include_next |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | --- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | scripts/Kbuild.klibc | 3 ++- |
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | |
| 15 | diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | index 101f86f..1d5cdc4 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | --- a/scripts/Kbuild.klibc |
| 18 | +++ b/scripts/Kbuild.klibc |
| 19 | @@ -105,7 +105,8 @@ KLIBCOBJCOPY := $(OBJCOPY) |
| 20 | KLIBCOBJDUMP := $(OBJDUMP) |
| 21 | |
| 22 | # klibc include paths |
| 23 | -KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ |
| 24 | +KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ |
| 25 | + -isystem $(shell $(CC) -print-file-name=include) \ |
| 26 | -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ |
| 27 | -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ |
| 28 | -I$(KLIBCOBJ)/../include \ |