From: Tony Cook Date: Thu, 14 Dec 2006 13:52:53 +0000 (+0000) Subject: link zlib in using the default installed library name on Win32 instead of as libz. X-Git-Tag: Imager-0.55~5 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/64ddd21f418352d0b77df9963cf7f7a0577d7c47 link zlib in using the default installed library name on Win32 instead of as libz. fixes RT #23064 --- diff --git a/Makefile.PL b/Makefile.PL index 8ca21b05..5e60dd4d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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