summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/Makefile
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2018-07-24 16:24:23 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2018-07-24 16:24:23 -0400
commitf892ac66084ab0315adb0c52e4a39b518730d023 (patch)
tree0b41430bab3e1cf51e37476a5e6548f639cb7ec6 /Cryptlib/OpenSSL/Makefile
parent6215e920e71f5c6c43189f27b755e7a3238ad396 (diff)
downloadefi-boot-shim-upstream/15+1531942534.dd3230d.tar.gz
efi-boot-shim-upstream/15+1531942534.dd3230d.zip
New upstream version 15+1531942534.dd3230dupstream/15+1531942534.dd3230d
Diffstat (limited to 'Cryptlib/OpenSSL/Makefile')
-rw-r--r--Cryptlib/OpenSSL/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Cryptlib/OpenSSL/Makefile b/Cryptlib/OpenSSL/Makefile
index b61b66d8..916feac0 100644
--- a/Cryptlib/OpenSSL/Makefile
+++ b/Cryptlib/OpenSSL/Makefile
@@ -8,14 +8,16 @@ CFLAGS = -ggdb -O0 -I$(TOPDIR) -I$(TOPDIR)/.. -I$(TOPDIR)/../Include/ -I$(TOPDI
-ffreestanding -std=gnu89 -I$(shell $(CC) -print-file-name=include) \
-Wall $(EFI_INCLUDES) -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_SMALL_FOOTPRINT -DPEDANTIC
+CLANG_BUGS = $(if $(findstring gcc,$(CC)),-maccumulate-outgoing-args,)
+
ifeq ($(ARCH),x86_64)
- CFLAGS += -mno-mmx -mno-sse -mno-red-zone -maccumulate-outgoing-args \
- -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \
+ CFLAGS += -mno-mmx -mno-sse -mno-red-zone $(CLANG_BUGS) \
+ -m64 -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \
-UNO_BUILTIN_VA_FUNCS -DMDE_CPU_X64
endif
ifeq ($(ARCH),ia32)
- CFLAGS += -mno-mmx -mno-sse -mno-red-zone -maccumulate-outgoing-args \
- -m32 -DMDE_CPU_IA32
+ CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc \
+ $(CLANG_BUGS) -m32 -DMDE_CPU_IA32
endif
ifeq ($(ARCH),aarch64)
CFLAGS += -O2 -DMDE_CPU_AARCH64