Commit 1c4e4e4f authored by Richard Levitte's avatar Richard Levitte
Browse files

Add -lz to the ld flags when the user has chosen to link in zlib *statically*.

Notified by Doug Kaufman <dkaufman@rahul.net>
parent 3f6db7f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1091,7 +1091,7 @@ if ($zlib)
	{
	$cflags = "-DZLIB $cflags";
	$cflags = "-DZLIB_SHARED $cflags" if $zlib == 2;
	$lflags = "$lflags -lz" if $zlib == 2;
	$lflags = "$lflags -lz" if $zlib == 1;
	}

# You will find shlib_mark1 and shlib_mark2 explained in Makefile.org