summaryrefslogtreecommitdiff
path: root/openssl/opensslwnt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/opensslwnt.patch')
-rw-r--r--openssl/opensslwnt.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/opensslwnt.patch b/openssl/opensslwnt.patch
index ac9aff251651..a28a24faaad6 100644
--- a/openssl/opensslwnt.patch
+++ b/openssl/opensslwnt.patch
@@ -127,7 +127,7 @@
- $lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
- $opt_cflags=$f.' /Ox /O2 /Ob2';
- $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
-+ my $f = $shlib || $fips ?' -MD':' -MT';
++ my $f = $shlib || $fips ? (($ENV{MSVC_USE_DEBUG_RUNTIME} eq "TRUE") ? ' -MDd' : ' -MD' ):' -MT';
+ $lib_cflag='-Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
+ $opt_cflags=$f.' -Ox -O2 -Ob2';
+ $dbg_cflags=$f.'d -Od -DDEBUG -D_DEBUG';