On WIN32 use /MD for static library in FIPS mode to match value of
authorDr. Stephen Henson <steve@openssl.org>
Tue, 18 Nov 2008 22:23:20 +0000 (22:23 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 18 Nov 2008 22:23:20 +0000 (22:23 +0000)
validated module.

util/pl/VC-32.pl

index 33bc249bd8852a72a08a0dfa0dcdddd9cf404b53..730c2083bd9cf2fb79c5c9b1d3f98664b83d95e1 100644 (file)
@@ -110,7 +110,7 @@ else        # Win32
     $base_cflags=' /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32';
     $base_cflags.=' -D_CRT_SECURE_NO_DEPRECATE';       # shut up VC8
     $base_cflags.=' -D_CRT_NONSTDC_NO_DEPRECATE';      # shut up VC8
-    my $f = $shlib?' /MD':' /MT';
+    my $f = $shlib || $fips ?' /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';