summaryrefslogtreecommitdiff
path: root/Cryptlib/Makefile
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-12 21:51:24 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-12 21:51:24 -0400
commitc2f285a93f50edc40d6f2b8114e4f9af812398d0 (patch)
tree6940e340eae98afd92b17d71589fdd0e9e6ba9ac /Cryptlib/Makefile
parentd6f876b8504896cd20e3e6455a6baf7eabaf49f9 (diff)
downloadefi-boot-shim-c2f285a93f50edc40d6f2b8114e4f9af812398d0.tar.gz
efi-boot-shim-c2f285a93f50edc40d6f2b8114e4f9af812398d0.zip
More GCC 5 fixes: stdarg.h and other include tweaks, cherry-pick from
d51739a4.
Diffstat (limited to 'Cryptlib/Makefile')
-rw-r--r--Cryptlib/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile
index e930656d..a7f1dbbe 100644
--- a/Cryptlib/Makefile
+++ b/Cryptlib/Makefile
@@ -2,7 +2,8 @@
EFI_INCLUDES = -IInclude -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol
CFLAGS = -std=gnu89 -ggdb -O0 -I. -fno-stack-protector -fno-strict-aliasing -fpic -fshort-wchar \
- -Wall $(EFI_INCLUDES)
+ -Wall $(EFI_INCLUDES) \
+ -ffreestanding -I$(shell $(CC) -print-file-name=include)
ifeq ($(ARCH),x86_64)
CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args \