Skip to content

Commit 5645ce9

Browse files
jeffhostetlerdscho
authored andcommitted
clink.pl: fix MSVC compile script to handle libcurl-d.lib
Update clink.pl to link with either libcurl.lib or libcurl-d.lib depending on whether DEBUG=1 is set. Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5501b4a commit 5645ce9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/vcbuild/scripts/clink.pl

+2-1
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)