diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-06-05 10:51:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-06-05 10:51:48 +0000 |
commit | 5329130333384a5b9cac2a7dbaabedd94b61c68d (patch) | |
tree | f2bb4b0d1068af8a62c47d83a2d9f000f24be22d /util/pl | |
parent | e1451bb51d9a8e8ff8fbdca962636f4d54d131af (diff) |
Link in extra CryptoAPI related libraries if needed.
Diffstat (limited to 'util/pl')
-rw-r--r-- | util/pl/VC-32.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index 58b51284f0..cd9dbd45a9 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -155,6 +155,7 @@ if ($FLAVOR =~ /CE/) else { $ex_libs.=' gdi32.lib advapi32.lib crypt32.lib user32.lib'; + $ex_libs.=' cryptui.lib' if $cflags =~ /-DOPENSSL_CAPIENG_DIALOG/; $ex_libs.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/); # WIN32 UNICODE build gets linked with unicows.lib for # backward compatibility with Win9x. @@ -291,7 +292,14 @@ sub do_lib_rule if ($name eq "") { $ex.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/); - $ex.=' crypt32.lib advapi32.lib' if ($target =~ /capi/); + if ($target =~ /capi/) + { + $ex.=' crypt32.lib advapi32.lib'; + if ($cflags =~ /-DOPENSSL_CAPIENG_DIALOG/) + { + $ex.=' cryptui.lib'; + } + } } elsif ($FLAVOR =~ /CE/) { @@ -304,6 +312,7 @@ sub do_lib_rule $ex.=' unicows.lib' if ($FLAVOR =~ /NT/); $ex.=' ws2_32.lib gdi32.lib advapi32.lib user32.lib'; $ex.=' crypt32.lib'; + $ex.=' cryptui.lib' if $cflags =~ /-DOPENSSL_CAPIENG_DIALOG/; $ex.=' bufferoverflowu.lib' if ($FLAVOR =~ /WIN64/); } $ex.=" $zlib_lib" if $zlib_opt == 1 && $target =~ /O_CRYPTO/; |