arrfab / rpms / shim

Forked from rpms/shim 4 years ago
Clone

Blame SOURCES/0004-properly-compile-OpenSSL-in-32-bit-mode.patch

4210fa
From c5ed2dfa5d9c2d5de33db290ae8cc237342dbc4c Mon Sep 17 00:00:00 2001
4210fa
From: Andrey Petrov <andrey.petrov@intel.com>
4210fa
Date: Mon, 11 Nov 2013 13:46:42 -0800
4210fa
Subject: [PATCH 04/74] properly compile OpenSSL in 32-bit mode
4210fa
4210fa
Change-Id: Iff3ee5ae0f0b95b282b99a23e465723b4e9f6104
4210fa
Signed-off-by: Andrey Petrov <andrey.petrov@intel.com>
4210fa
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
4210fa
---
4210fa
 Cryptlib/OpenSSL/Makefile | 7 +++++--
4210fa
 1 file changed, 5 insertions(+), 2 deletions(-)
4210fa
4210fa
diff --git a/Cryptlib/OpenSSL/Makefile b/Cryptlib/OpenSSL/Makefile
4210fa
index c93d5af..3d5a87c 100644
4210fa
--- a/Cryptlib/OpenSSL/Makefile
4210fa
+++ b/Cryptlib/OpenSSL/Makefile
4210fa
@@ -10,9 +10,12 @@ LIB_GCC		= $(shell $(CC) -print-libgcc-file-name)
4210fa
 EFI_LIBS	= -lefi -lgnuefi $(LIB_GCC)
4210fa
 
4210fa
 CFLAGS		= -ggdb -O0 -I. -I.. -I../Include/ -Icrypto -fno-stack-protector -fno-strict-aliasing -fpic -fshort-wchar -nostdinc -mno-mmx -mno-sse -mno-red-zone -maccumulate-outgoing-args \
4210fa
-		  -Wall $(EFI_INCLUDES) -DOPENSSL_SYSNAME_UWIN -DOPENSSL_SYS_UEFI -DL_ENDIAN -DSIXTY_FOUR_BIT_LONG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_SOCK -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_ERR -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE -DGETPID_IS_MEANINGLESS -DOPENSSL_NO_STDIO -DOPENSSL_NO_FP_API -DOPENSSL_NO_DGRAM -DOPENSSL_NO_SHA0 -DOPENSSL_NO_LHASH -DOPENSSL_NO_HW -DOPENSSL_NO_OCSP -DOPENSSL_NO_LOCKING -DOPENSSL_NO_DEPRECATED -DOPENSSL_SMALL_FOOTPRINT -DPEDANTIC
4210fa
+		  -Wall $(EFI_INCLUDES) -DOPENSSL_SYSNAME_UWIN -DOPENSSL_SYS_UEFI -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_SOCK -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_ERR -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE -DGETPID_IS_MEANINGLESS -DOPENSSL_NO_STDIO -DOPENSSL_NO_FP_API -DOPENSSL_NO_DGRAM -DOPENSSL_NO_SHA0 -DOPENSSL_NO_LHASH -DOPENSSL_NO_HW -DOPENSSL_NO_OCSP -DOPENSSL_NO_LOCKING -DOPENSSL_NO_DEPRECATED -DOPENSSL_SMALL_FOOTPRINT -DPEDANTIC
4210fa
 ifeq ($(ARCH),x86_64)
4210fa
-	CFLAGS	+= -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI
4210fa
+	CFLAGS	+= -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -DSIXTY_FOUR_BIT_LONG
4210fa
+endif
4210fa
+ifeq ($(ARCH),ia32)
4210fa
+	CFLAGS	+= -DTHIRTY_TWO_BIT
4210fa
 endif
4210fa
 LDFLAGS		= -nostdlib -znocombreloc
4210fa
 
4210fa
-- 
4210fa
1.9.3
4210fa