diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2013-09-20 12:55:24 -0500 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2013-09-20 12:55:24 -0500 |
| commit | 5a187fadda0e4b00eeebb7b43a04c16d983b8d37 (patch) | |
| tree | 319b86e298653eda862cba00ede0998a7189c594 /debian | |
| parent | 4d21772d2a3a0c3d031c2b6d9c3c057bebbf1d45 (diff) | |
| download | efi-boot-shim-5a187fadda0e4b00eeebb7b43a04c16d983b8d37.tar.gz efi-boot-shim-5a187fadda0e4b00eeebb7b43a04c16d983b8d37.zip | |
Build with -Werror to catch future prototype mismatches.
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | debian/patches/build-with-Werror | 16 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index a32df9ce..8de51d79 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ shim (0.4-0ubuntu4) UNRELEASED; urgency=low * debian/patches/fix-tftp-prototype: pass the right arguments to EFI_PXE_BASE_CODE_TFTP_READ_FILE. + * Build with -Werror to catch future prototype mismatches. -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 20 Sep 2013 14:43:23 +0000 diff --git a/debian/patches/build-with-Werror b/debian/patches/build-with-Werror new file mode 100644 index 00000000..50992460 --- /dev/null +++ b/debian/patches/build-with-Werror @@ -0,0 +1,16 @@ +Description: Buiild with -Werror to catch future prototype mismatches. +Author: Steve Langasek <steve.langasek@ubuntu.com> + +Index: shim/Makefile +=================================================================== +--- shim.orig/Makefile ++++ shim/Makefile +@@ -15,7 +15,7 @@ + EFI_LDS = elf_$(ARCH)_efi.lds + + CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \ +- -fshort-wchar -Wall -mno-red-zone -maccumulate-outgoing-args \ ++ -fshort-wchar -Wall -Werror -mno-red-zone -maccumulate-outgoing-args \ + -mno-mmx -mno-sse \ + $(EFI_INCLUDES) + ifeq ($(ARCH),x86_64) diff --git a/debian/patches/series b/debian/patches/series index 6e35cc4f..8717a913 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ sbsigntool-not-pesign no-output-by-default.patch no-print-on-unsigned fix-tftp-prototype +build-with-Werror |
