diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-10-04 21:22:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-10-04 21:22:47 +0000 |
commit | fc6a6a10309704e10c4493d5ee5f834a3307ffa3 (patch) | |
tree | 6c473ff5cf2197f48398d70c07401c69f96e5ee9 /util | |
parent | 3d840c827f1190f11780a5bdb05665d341fcec78 (diff) |
Add version info to Win32 DLLs.
We might want to edit the strings a bit...
Maybe add to 0.9.7 too?
Diffstat (limited to 'util')
-rwxr-xr-x | util/mk1mf.pl | 21 | ||||
-rw-r--r-- | util/pl/VC-32.pl | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 866629fe25..bdb176d668 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -288,6 +288,7 @@ SRC_D=$src_dir LINK=$link LFLAGS=$lflags +RSC=$rsc BN_ASM_OBJ=$bn_asm_obj BN_ASM_SRC=$bn_asm_src @@ -600,6 +601,18 @@ foreach (values %lib_nam) $rules.=&do_compile_rule("\$(OBJ_D)",$lib_obj{$_},$lib); } +# hack to add version info on MSVC +if (($platform eq "VC-WIN32") || ($platform eq "VC-NT")) { + $rules.= <<"EOF"; +\$(OBJ_D)\\\$(CRYPTO).res: ms\\version32.rc + \$(RSC) /fo"\$(OBJ_D)\\\$(CRYPTO).res" /d CRYPTO ms\\version32.rc + +\$(OBJ_D)\\\$(SSL).res: ms\\version32.rc + \$(RSC) /fo"\$(OBJ_D)\\\$(SSL).res" /d SSL ms\\version32.rc + +EOF +} + $defs.=&do_defs("T_EXE",$test,"\$(TEST_D)",$exep); foreach (split(/\s+/,$test)) { @@ -755,6 +768,14 @@ sub do_defs $Vars{$var}.="$t "; $ret.=$t; } + # hack to add version info on MSVC + if ($shlib && ($platform eq "VC-WIN32") || ($platform eq "VC-NT")) + { + if ($var eq "CRYPTOOBJ") + { $ret.="\$(OBJ_D)\\\$(CRYPTO).res "; } + elsif ($var eq "SSLOBJ") + { $ret.="\$(OBJ_D)\\\$(SSL).res "; } + } chop($ret); $ret.="\n\n"; return($ret); diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index d6e3a11530..334a53f70b 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -32,6 +32,7 @@ $ofile="/Fo"; # EXE linking stuff $link="link"; +$rsc="rc"; $efile="/out:"; $exep='.exe'; if ($no_sock) |