Skip to content

Commit 1bd8846

Browse files
committed
Merge pull request #2501 from jeffhostetler/clink-debug-curl
clink.pl: fix MSVC compile script to handle libcurl-d.lib
2 parents 32c291f + 2ea53fa commit 1bd8846

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/vcbuild/scripts/clink.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
# need to use that instead?
5757
foreach my $flag (@lflags) {
5858
if ($flag =~ /^-LIBPATH:(.*)/) {
59-
foreach my $l ("libcurl_imp.lib", "libcurl.lib") {
59+
my $libcurl = $is_debug ? "libcurl-d.lib" : "libcurl.lib";
60+
foreach my $l ("libcurl_imp.lib", $libcurl) {
6061
if (-f "$1/$l") {
6162
$lib = $l;
6263
last;

0 commit comments

Comments
 (0)