]> git.imager.perl.org - imager.git/commitdiff
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 8ca21b058f134a5b4df5a94558fed74990df22d4..5e60dd4d19641929f5e3d76f5bb0d6a3ebe7c9ef 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