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 <glin@suse.com>
This commit is contained in:
Gary Ching-Pang Lin 2014-12-11 09:48:50 -05:00 committed by Peter Jones
parent 7361f67dbd
commit ed4c5dbc84
3 changed files with 3 additions and 4 deletions

View File

@ -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 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 \ -fshort-wchar -Wall -DBUILD_EFI -fno-builtin -Werror \
$(EFI_INCLUDES) $(EFI_INCLUDES)

View File

@ -4,8 +4,8 @@
* *
* see COPYING file * see COPYING file
*/ */
#include <efi/efi.h> #include <efi.h>
#include <efi/efilib.h> #include <efilib.h>
#include <console.h> #include <console.h>
#include <variables.h> #include <variables.h>

View File

@ -5,7 +5,6 @@
*/ */
#include <guid.h> #include <guid.h>
#include <stdio.h>
#ifndef BUILD_EFI #ifndef BUILD_EFI
/* EFI has %g for this, so it's only needed in platform c */ /* EFI has %g for this, so it's only needed in platform c */