CC: | marc-philip.werner [...] sap.com |
Subject: | wrong external zlib name used on Windows |
When building against a pre-built library of zlib, the link option is -lz on all platforms, where it must be -lzlib on Windows, because the zlib project builds a zlib.lib on Windows.
Please find the attached patch as a suggestion how to fix it.
Regards
Marc-Philip
Subject: | win_zlibname.patch |
diff -Naur Compress-Raw-Zlib-2.075.orig/Makefile.PL Compress-Raw-Zlib-2.075/Makefile.PL
--- Compress-Raw-Zlib-2.075.orig/Makefile.PL 2017-02-04 18:22:32.000000000 +0000
+++ Compress-Raw-Zlib-2.075/Makefile.PL 2017-11-21 12:42:43.477106700 +0000
@@ -85,7 +85,7 @@
(
$BUILD_ZLIB
? zlib_files($ZLIB_LIB)
- : (LIBS => [ "-L$ZLIB_LIB -lz " ])
+ : (LIBS => [ "-L$ZLIB_LIB -lz".($^O=="MSWin32"?"lib":"")." " ])
),
OPTIMIZE => $OPTIMIZE,