link zlib in using the default installed library name on Win32 instead of as libz.
authorTony Cook <tony@develop=help.com>
Thu, 14 Dec 2006 13:52:53 +0000 (13:52 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 14 Dec 2006 13:52:53 +0000 (13:52 +0000)
fixes RT #23064

Makefile.PL

index 8ca21b0..5e60dd4 100644 (file)
@@ -470,7 +470,7 @@ sub init {
                   def=>'HAVE_LIBPNG',
                   inccheck=>sub { -e catfile($_[0], 'png.h') },
                   libcheck=>sub { $_[0] eq "libpng$aext" or $_[0] eq "libpng.$lext" },
-                  libfiles=>'-lpng -lz',
+                  libfiles=>$^O eq 'MSWin32' ? '-lpng -lzlib' : '-lpng -lz',
                   objfiles=>'png.o',
                   docs=>q{
                           Png stands for Portable Network Graphics and is intended as