From 361716dd4a612e8be58e755102eceefffd3a54c5 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Mon, 10 Nov 2014 17:31:15 +0800 Subject: Add nostdinc to the CFLAGS for lib We don't need the headers from the standard include path. Signed-off-by: Gary Ching-Pang Lin --- lib/Makefile | 2 +- lib/console.c | 4 ++-- lib/guid.c | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index ebd21a14..3c5101ef 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -4,7 +4,7 @@ LIBFILES = simple_file.o guid.o console.o execute.o configtable.o shell.o variab EFI_INCLUDES = -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I../include -CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \ +CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic -nostdinc\ -fshort-wchar -Wall -DBUILD_EFI -fno-builtin -Werror \ $(EFI_INCLUDES) diff --git a/lib/console.c b/lib/console.c index 83ee679e..fd8cc5c8 100644 --- a/lib/console.c +++ b/lib/console.c @@ -4,8 +4,8 @@ * * see COPYING file */ -#include -#include +#include +#include #include #include diff --git a/lib/guid.c b/lib/guid.c index 56ec952b..c97a7ca8 100644 --- a/lib/guid.c +++ b/lib/guid.c @@ -5,7 +5,6 @@ */ #include -#include #ifndef BUILD_EFI /* EFI has %g for this, so it's only needed in platform c */ -- cgit v1.2.3