Merge pull request #2501 from jeffhostetler/clink-debug-curl

clink.pl: fix MSVC compile script to handle libcurl-d.lib
This commit is contained in:
Johannes Schindelin 2020-01-30 23:18:53 +01:00
commit 50fbe4fa35

View File

@ -56,7 +56,8 @@ while (@ARGV) {
# need to use that instead?
foreach my $flag (@lflags) {
if ($flag =~ /^-LIBPATH:(.*)/) {
foreach my $l ("libcurl_imp.lib", "libcurl.lib") {
my $libcurl = $is_debug ? "libcurl-d.lib" : "libcurl.lib";
foreach my $l ("libcurl_imp.lib", $libcurl) {
if (-f "$1/$l") {
$lib = $l;
last;