From 311b653d806ac73c8e0fc5009a2cc10f5e8a6fb3 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 17 Jun 2020 14:00:04 +1000 Subject: [PATCH] tests: Fix Makefile.test to not allow host includes xics was including the host limits.h for example Signed-off-by: Benjamin Herrenschmidt --- tests/Makefile.test | 2 +- tests/xics/xics.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Makefile.test b/tests/Makefile.test index 3b800d0..ff0044d 100644 --- a/tests/Makefile.test +++ b/tests/Makefile.test @@ -9,7 +9,7 @@ CC = $(CROSS_COMPILE)gcc LD = $(CROSS_COMPILE)ld OBJCOPY = $(CROSS_COMPILE)objcopy -CFLAGS = -Os -g -Wall -std=c99 -msoft-float -mno-string -mno-multiple -mno-vsx -mno-altivec -mlittle-endian -fno-stack-protector -mstrict-align -ffreestanding -fdata-sections -ffunction-sections -I ../../include +CFLAGS = -Os -g -Wall -std=c99 -nostdinc -msoft-float -mno-string -mno-multiple -mno-vsx -mno-altivec -mlittle-endian -fno-stack-protector -mstrict-align -ffreestanding -fdata-sections -ffunction-sections -I ../../include -isystem $(shell $(CC) -print-file-name=include) ASFLAGS = $(CFLAGS) LDFLAGS = -T powerpc.lds diff --git a/tests/xics/xics.c b/tests/xics/xics.c index a2db3a5..46f9a01 100644 --- a/tests/xics/xics.c +++ b/tests/xics/xics.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "console.h" #include "xics.h"