Skip to content

Commit 37e0c11

Browse files
Merge pull request #634 from sschuberth/fix-windows-build
extconf: Explicitly link against zlib on Windows to fix the build
2 parents a3eba26 + e22caa0 commit 37e0c11

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)