diff options
| author | Tamas K Lengyel <lengyelt@ainfosec.com> | 2017-11-11 10:10:56 -0700 |
|---|---|---|
| committer | Peter Jones <pmjones@gmail.com> | 2018-03-06 14:33:19 -0500 |
| commit | 3d932631980a29cf584afbf80bc6c278129ae2e2 (patch) | |
| tree | a5e0a3ce76c3be1aa1c4654f36537e995e29cd61 | |
| parent | 0da5fb8c9de1ff5c4bb4cde92f5233cf466375e4 (diff) | |
| download | efi-boot-shim-3d932631980a29cf584afbf80bc6c278129ae2e2.tar.gz efi-boot-shim-3d932631980a29cf584afbf80bc6c278129ae2e2.zip | |
Add -m64 compiler flag to allow cross-compiling to 64-bit version on 32-bit system
Signed-off-by: Tamas K Lengyel <lengyelt@ainfosec.com>
| -rw-r--r-- | Cryptlib/Makefile | 2 | ||||
| -rw-r--r-- | Cryptlib/OpenSSL/Makefile | 2 | ||||
| -rw-r--r-- | Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Cryptlib/Makefile b/Cryptlib/Makefile index a025ac53..309536fb 100644 --- a/Cryptlib/Makefile +++ b/Cryptlib/Makefile @@ -6,7 +6,7 @@ CFLAGS = -ggdb -O0 -I$(TOPDIR) -iquote $(TOPDIR) -fno-stack-protector -fno-stri -ffreestanding -I$(shell $(CC) -print-file-name=include) ifeq ($(ARCH),x86_64) - CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args \ + CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args -m64 \ -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -DNO_BUILTIN_VA_FUNCS \ -DMDE_CPU_X64 endif diff --git a/Cryptlib/OpenSSL/Makefile b/Cryptlib/OpenSSL/Makefile index b61b66d8..d3437e29 100644 --- a/Cryptlib/OpenSSL/Makefile +++ b/Cryptlib/OpenSSL/Makefile @@ -10,7 +10,7 @@ CFLAGS = -ggdb -O0 -I$(TOPDIR) -I$(TOPDIR)/.. -I$(TOPDIR)/../Include/ -I$(TOPDI ifeq ($(ARCH),x86_64) CFLAGS += -mno-mmx -mno-sse -mno-red-zone -maccumulate-outgoing-args \ - -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \ + -m64 -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \ -UNO_BUILTIN_VA_FUNCS -DMDE_CPU_X64 endif ifeq ($(ARCH),ia32) @@ -70,7 +70,7 @@ endif ifeq ($(ARCH),x86_64) CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc \ - -maccumulate-outgoing-args \ + -maccumulate-outgoing-args -m64 \ -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI \ -DNO_BUILTIN_VA_FUNCS -DMDE_CPU_X64 -DPAGE_SIZE=4096 LIBDIR ?= $(prefix)/lib64 |
