Add /fixed option to linker with fips builds.
[openssl.git] / util / pl / VC-32.pl
index 693adae6e4778b5b2148e1a0e233ab9d243bef83..a665b562e1b1a536835165f81e24ddbb6b5078bd 100644 (file)
@@ -64,6 +64,10 @@ if ($FLAVOR =~ /WIN64/)
 \$(TMP_D)$o$bname.asm: $source
        set ASM=\$(ASM)
        \$(PERL) $source \$\@
+___
+       $ret .= "\t\$(PERL) util\\fipsas.pl . \$@ norunasm \$(CFLAG)\n" if $fipscanisterbuild;
+
+       $ret.=<<___;
 
 $target: \$(TMP_D)$o$bname.asm
        \$(ASM) $afile\$\@ \$(TMP_D)$o$bname.asm
@@ -158,6 +162,8 @@ $app_cflag.=" /Zi /Fd\$(TMP_D)/app";
 $lib_cflag.=" /Zi /Fd\$(TMP_D)/lib";
 $lflags.=" /debug";
 
+$lflags.=" /fixed" if $fips;
+
 $obj='.obj';
 $asm_suffix='.asm';
 $ofile="/Fo";