Skip to content

Commit c36e163

Browse files
mstormoj6t
authored andcommitted
MSVC: Enable OpenSSL, and translate -lcrypto
We don't use crypto, but rather require libeay32 and ssleay32. handle it in both the Makefile msvc linker script, and the buildsystem generator. Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4192e1c commit c36e163

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ ifdef MSVC
881881
GIT_VERSION := $(GIT_VERSION).MSVC
882882
pathsep = ;
883883
NO_PREAD = YesPlease
884-
NO_OPENSSL = YesPlease
884+
NEEDS_CRYPTO_WITH_SSL = YesPlease
885885
NO_LIBGEN_H = YesPlease
886886
NO_SYMLINK_HEAD = YesPlease
887887
NO_IPV6 = YesPlease

compat/vcbuild/scripts/clink.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
push(@args, "zlib.lib");
3030
} elsif ("$arg" eq "-liconv") {
3131
push(@args, "iconv.lib");
32+
} elsif ("$arg" eq "-lcrypto") {
33+
push(@args, "libeay32.lib");
34+
push(@args, "ssleay32.lib");
3235
} elsif ("$arg" =~ /^-L/ && "$arg" ne "-LTCG") {
3336
$arg =~ s/^-L/-LIBPATH:/;
3437
push(@args, $arg);

contrib/buildsystems/engine.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ sub handleLinkLine
315315
$appout = shift @parts;
316316
} elsif ("$part" eq "-lz") {
317317
push(@libs, "zlib.lib");
318+
} elsif ("$part" eq "-lcrypto") {
319+
push(@libs, "libeay32.lib");
320+
push(@libs, "ssleay32.lib");
318321
} elsif ($part =~ /^-/) {
319322
push(@lflags, $part);
320323
} elsif ($part =~ /\.(a|lib)$/) {

0 commit comments

Comments
 (0)