File: trim_libs.patch

package info (click to toggle)
libxml-libxslt-perl 2.003000-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 704 kB
  • sloc: xml: 2,181; perl: 1,227; ansic: 402; makefile: 24
file content (41 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: avoid linkage to all libs perl is linked
Forwarded: probably not
Author: Damyan Ivanov
Reviewed-by: gregor herrmann <gregoa@debian.org>
 Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2022-05-22

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -131,31 +131,6 @@
     }
 }
 
-if ($config{LIBS} !~ /\-lz(lib)?\b/ and !($::is_Win32 && $config{LIBS} !~ /\-lzlib\b/)) {
-    # note if libxml2 has not -lz within its cflags, we should not use
-    # it! We should trust libxml2 and assume libz is not available on the
-    # current system (this is ofcourse not true with win32 systems.
-    # $config{LIBS} .= $::is_Win32 ? ' -lzlib' :' -lz';
-    if ( $config{DEBUG} ) {
-        warn "zlib was not configured\n";
-        warn "set zlib\n" if $::is_Win32;
-    }
-    if ($::is_Win32) {
-        if( $ENV{ACTIVEPERL_MINGW} ) {
-            $config{LIBS} .= '';
-        } else {
-            $config{LIBS} .= ' -lzlib';
-        }
-    } else {
-        $config{LIBS} .= ' -lz';
-    }
-}
-
-if ($config{LIBS} !~ /\-lm\b/) {
-    # math support is important, but is not available separately in W32
-    $config{LIBS} .= $::is_Win32 ? '' :' -lm';
-}
-
 if (!have_library($::is_Win32 ? "libxslt" : "xslt")) {
     print STDERR <<"DEATH";
 libxslt not found