File: trim_libs.patch

package info (click to toggle)
libxml-libxslt-perl 1.99-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 692 kB
  • sloc: xml: 2,181; perl: 893; ansic: 402; makefile: 7
file content (41 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (2)
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>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2016-08-08

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -132,31 +132,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