diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-23 15:03:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-23 15:03:43 +0000 |
commit | 548b4763e1c3fb36517804a07f3823c8af6ee022 (patch) | |
tree | 31d758886c5ce1beb27e469ae3bfd9d3976b5c2c /util/mk1mf.pl | |
parent | 227d6a9347d4c94ff1bb0a91191a33ec18e682e3 (diff) |
Make -DOPENSSL_FIPSSYMS work under WIN32: run perl script when
WIN32 assembly language files are created, add norunasm option
to just translate and not run the assembler.
Diffstat (limited to 'util/mk1mf.pl')
-rwxr-xr-x | util/mk1mf.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 7ace933a6b..cb104f8097 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1163,10 +1163,14 @@ sub perlasm_compile_target { my($target,$source,$bname)=@_; my($ret); - $bname =~ s/(.*)\.[^\.]$/$1/; $ret ="\$(TMP_D)$o$bname.asm: $source\n"; - $ret.="\t\$(PERL) $source $asmtype \$(CFLAG) >\$\@\n\n"; + $ret.="\t\$(PERL) $source $asmtype \$(CFLAG) >\$\@\n"; + if ($cflags =~ /-DOPENSSL_FIPSSYMS/) + { + $ret .= "\t\$(PERL) util\\fipsas.pl . \$@ norunasm \$(CFLAG)\n"; + } + $ret .= "\n"; $ret.="$target: \$(TMP_D)$o$bname.asm\n"; $ret.="\t\$(ASM) $afile\$\@ \$(TMP_D)$o$bname.asm\n\n"; return($ret); |