Skip to content

Commit e22caa0

Browse files
svmastersamuraisschuberth
authored andcommitted
extconf: Explicitly link against zlib on Windows to fix the build
Closes #612.
1 parent a3eba26 commit e22caa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rugged/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def windows?
7777
# in $LIBS or the final linking stage won't pick them up
7878
if windows?
7979
$LDFLAGS << " " + "-L#{Dir.pwd}/deps/winhttp"
80-
$LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32"
80+
$LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32 -lz"
8181
else
8282
pcfile = File.join(LIBGIT2_DIR, "build", "libgit2.pc")
8383
$LDFLAGS << " " + `pkg-config --libs --static #{pcfile}`.strip

0 commit comments

Comments
 (0)