aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-07-13 11:44:32 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-07-28 12:22:32 +0100
commitfbcefbd00f64fc360b6e638c617481b4e6fee80c (patch)
treebc2344cdfc2aa6e927d0ac0e81a3611469c32def
parentaaf56a110683a6f46ad255a5065aa057161b02b6 (diff)
downloadefilinux-fbcefbd00f64fc360b6e638c617481b4e6fee80c.tar.gz
Makefile: Turn on -Werror
It's all too easy to miss important warnings if they don't cause the compiler to error. One really important warning is missing function declarations - if the function cannot be resolved at runtime by the EFI loader then efilinux will silently fail to load and run. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1f81080..2499ec3 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ LDSCRIPT=$(LIBDIR)/gnuefi/elf_$(ARCH)_efi.lds
CFLAGS=-I. -I/usr/include/efi -I/usr/include/efi/$(ARCH) \
-DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \
- -Wall -Ifs/ -Iloaders/ -D$(ARCH)
+ -Wall -Ifs/ -Iloaders/ -D$(ARCH) -Werror
LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -L$(LIBDIR) $(CRT0)
IMAGE=efilinux.efi