Subject: | [PATCH] Do not link libz |
Date: | Sun, 11 Apr 2010 22:05:24 +0900 |
To: | bug-File-LibMagic [...] rt.cpan.org |
From: | Ansgar Burchardt <ansgar [...] 43-1.org> |
Hi,
File::LibMagic does not use any symbols from libz directly so there is
no need to link against it. Please consider applying the attached patch
to remove this dependency. It builds and passes the test suite with the
patch applied.
Regards,
Ansgar
From: Ansgar Burchardt
Date: Sun, 11 Apr 2010 17:53:55 +0900
Bug-Debian: http://bugs.debian.org/577288
Subject: Do not link libz
--- libfile-libmagic-perl.orig/Makefile.PL
+++ libfile-libmagic-perl/Makefile.PL
@@ -15,7 +15,7 @@
'PREREQ_PM' => { },
'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module
'AUTHOR' => 'Andreas Fitzner <andreas.fitzner@fv-berlin.de>',
- 'LIBS' => ['-lmagic -lz'], # e.g., '-lm'
+ 'LIBS' => ['-lmagic'], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '-I.', # e.g., '-I. -I/usr/include/other'
# Un-comment this if you add C files to link with later: