mirror of https://github.com/openssl/openssl.git
Support -L options in VC++ link.
This commit is contained in:
parent
a238d7d1eb
commit
9359fc5ff2
|
|
@ -20,7 +20,8 @@ int main(int argc, char **argv)
|
||||||
fprintf(stderr, "Usage: pkread p12file password opfile\n");
|
fprintf(stderr, "Usage: pkread p12file password opfile\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
SSLeay_add_all_algorithms();
|
/*SSLeay_add_all_algorithms();*/
|
||||||
|
SSL_library_init();
|
||||||
ERR_load_crypto_strings();
|
ERR_load_crypto_strings();
|
||||||
if (!(fp = fopen(argv[1], "rb"))) {
|
if (!(fp = fopen(argv[1], "rb"))) {
|
||||||
fprintf(stderr, "Error opening file %s\n", argv[1]);
|
fprintf(stderr, "Error opening file %s\n", argv[1]);
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ $rm='del /Q';
|
||||||
|
|
||||||
$zlib_lib="zlib1.lib";
|
$zlib_lib="zlib1.lib";
|
||||||
|
|
||||||
|
# Santize -L options for ms link
|
||||||
|
$l_flags =~ s/-L("\[^"]+")/\/libpath:$1/g;
|
||||||
|
$l_flags =~ s/-L(\S+)/\/libpath:$1/g;
|
||||||
|
|
||||||
# C compiler stuff
|
# C compiler stuff
|
||||||
$cc='cl';
|
$cc='cl';
|
||||||
if ($FLAVOR =~ /WIN64/)
|
if ($FLAVOR =~ /WIN64/)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue