office-gobmx/external/openssl/opensslwnt_safeseh.patch
Michael Stahl cd44182c34 openssl: fix MSVC 64-bit build
For whatever reason OpenSSL wants to use "masm" (ml.exe) on 32-bit
builds but "nasm" on 64-bit builds - this despite INSTALL.W32 claiming
that only nasm is "supported".

But /safeseh doesn't make sense on 64-bit anyway because there
is no "unsafe" SEH there, so just apply the patch only for 32-bit.

Change-Id: Ie32b17dfeeaf11c49ee29c3181021ffa5bd99091
2018-01-08 18:11:28 +01:00

23 lines
606 B
Diff

use /safeseh in 32-bit MSVC builds; this is not required for 64-bit
diff -ru openssl.orig/util/mk1mf.pl openssl/util/mk1mf.pl
--- a/openssl.orig/util/mk1mf.pl 2016-03-03 20:22:21.043924505 +0100
+++ b/openssl/util/mk1mf.pl 2016-03-03 20:34:45.015901171 +0100
@@ -488,7 +493,7 @@
SRC_D=$src_dir
LINK_CMD=$link
-LFLAGS=$lflags
+LFLAGS=$lflags /SAFESEH
RSC=$rsc \$(SOLARINC)
# The output directory for everything interesting
@@ -511,7 +516,7 @@
MKDIR=$mkdir
MKLIB=$bin_dir$mklib
MLFLAGS=$mlflags
-ASM=$bin_dir$asm
+ASM=$bin_dir$asm /safeseh
# FIPS validated module and support file locations