Skip to content

Commit 9bccfcd

Browse files
committed
Windows: use BLK_SHA1 again
Since NO_OPENSSL is no longer defined on Windows, BLK_SHA1 is not defined anymore implicitly. Define it explicitly. As a nice side-effect, we no longer link against libcrypto.dll, which has non-trivial startup costs because it depends on 6 otherwise unneeded DLLs. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c36e163 commit 9bccfcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ ifdef MSVC
911911
NO_REGEX = YesPlease
912912
NO_CURL = YesPlease
913913
NO_PTHREADS = YesPlease
914+
BLK_SHA1 = YesPlease
914915

915916
CC = compat/vcbuild/scripts/clink.pl
916917
AR = compat/vcbuild/scripts/lib.pl
@@ -960,6 +961,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
960961
UNRELIABLE_FSTAT = UnfortunatelyYes
961962
OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
962963
NO_REGEX = YesPlease
964+
BLK_SHA1 = YesPlease
963965
COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -DNOGDI -Icompat -Icompat/fnmatch
964966
COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
965967
COMPAT_OBJS += compat/mingw.o compat/fnmatch/fnmatch.o compat/winansi.o

0 commit comments

Comments
 (0)