pkgsrc/devel/p5-Compress-Raw-Zlib/patches/patch-aa
wiz b6d15653d0 p5-Compress-Raw-Zlib: update to 2.076.
2.076 21 Nov 2017

      * Zlib.xs
        Silence gcc compiler warnings when -Wsign-compare is enabled
        #123688: Compilation warnings with clang

      * zlib-src/inflate.c and zlib-src/infback.c
        Silence gcc compiler warnings when -Wimplicit-fallthrough is enabled
        #123358: Compilation warnings with gcc-7.*

      * Makefile.PL
        Windows uses -lzlib. Linux uses -lz
        #123699: wrong external zlib name used on Windows
2017-11-24 13:42:15 +00:00

16 lines
529 B
Text

$NetBSD: patch-aa,v 1.6 2017/11/24 13:42:15 wiz Exp $
Record the path to the zlib library in the executable/library.
COMPILER_RPATH_FLAG is specific to pkgsrc.
--- Makefile.PL.orig 2017-11-21 19:35:45.000000000 +0000
+++ Makefile.PL
@@ -88,7 +88,7 @@ WriteMakefile(
(
$BUILD_ZLIB
? zlib_files($ZLIB_LIB)
- : (LIBS => [ "-L$ZLIB_LIB -l$ZLIB_LIBRARY_NAME " ])
+ : (LIBS => [ "-L$ZLIB_LIB $ENV{'COMPILER_RPATH_FLAG'}$ZLIB_LIB -l$ZLIB_LIBRARY_NAME " ])
),
OPTIMIZE => $OPTIMIZE,