diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2014-12-11 09:48:50 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2014-12-11 09:48:50 -0500 |
| commit | ed4c5dbc84c6baa6fc1ae0ea24b878df5bc81fa2 (patch) | |
| tree | 9bc1e34cbc6cbd5897edd858f048f1fc2066ddc4 | |
| parent | 7361f67dbd7f7fe98a807d3d12f90a87262124d6 (diff) | |
| download | efi-boot-shim-ed4c5dbc84c6baa6fc1ae0ea24b878df5bc81fa2.tar.gz efi-boot-shim-ed4c5dbc84c6baa6fc1ae0ea24b878df5bc81fa2.zip | |
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>
| -rw-r--r-- | lib/Makefile | 2 | ||||
| -rw-r--r-- | lib/console.c | 4 | ||||
| -rw-r--r-- | lib/guid.c | 1 |
3 files changed, 3 insertions, 4 deletions
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 <efi/efi.h> -#include <efi/efilib.h> +#include <efi.h> +#include <efilib.h> #include <console.h> #include <variables.h> @@ -5,7 +5,6 @@ */ #include <guid.h> -#include <stdio.h> #ifndef BUILD_EFI /* EFI has %g for this, so it's only needed in platform c */ |
