summaryrefslogtreecommitdiff
path: root/Cryptlib/Makefile
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2015-07-28 11:46:38 -0400
committerPeter Jones <pjones@redhat.com>2015-07-28 11:46:38 -0400
commita4af14259016be05f39ed9c2c3ca3d6c223e5271 (patch)
tree68dde35ed523b802d00bcb48ed5721b631c9ddeb /Cryptlib/Makefile
parent63b1c7e07e515ef130ea46706c5b712174f08ff2 (diff)
downloadefi-boot-shim-a4af14259016be05f39ed9c2c3ca3d6c223e5271.tar.gz
efi-boot-shim-a4af14259016be05f39ed9c2c3ca3d6c223e5271.zip
Specify the gnu89 standard
According to the gcc5 porting guideline (*), gcc5 defaults to -std=gnu11 instead of -std=gnu89. Append -std=gnu89 to CFLAGS to avoid the potential problems. (*) https://gcc.gnu.org/gcc-5/porting_to.html Based on the patch from Cristian Rodriguez <crrodriguez@opensuse.org> Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/Makefile')
-rw-r--r--Cryptlib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
index cb18440b..9a92304a 100644
--- a/Cryptlib/Makefile
+++ b/Cryptlib/Makefile
@@ -2,7 +2,7 @@
EFI_INCLUDES = -IInclude -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
CFLAGS = -ggdb -O0 -I. -fno-stack-protector -fno-strict-aliasing -fpic -fshort-wchar \
- -Wall $(EFI_INCLUDES) \
+ -Wall $(EFI_INCLUDES) -std=gnu89 \
-ffreestanding -I$(shell $(CC) -print-file-name=include)
ifeq ($(ARCH),x86_64)