summaryrefslogtreecommitdiff
path: root/devel/p5-File-LibMagic/patches/patch-aa
blob: 02bdd22568ba2ae314865bfea47b76d070f763c4 (plain)
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
$NetBSD: patch-aa,v 1.4 2009/05/30 20:02:07 sno Exp $

- Remove Devel::CheckLib invocation - it#s useless and won't work
  (RT #46543, #43826)
- Ensure we use the required ldflags for the platform.

--- Makefile.PL.orig	2009-05-12 13:31:06.000000000 +0000
+++ Makefile.PL	2009-05-30 19:47:40.000000000 +0000
@@ -4,18 +4,13 @@
 use ExtUtils::MakeMaker;
 use Config qw/%Config/;
 
-use lib qw(inc);
-use Devel::CheckLib;
-
-check_lib_or_exit( lib => 'magic', header => 'magic.h' );
-
 WriteMakefile(
     'NAME'		=> 'File::LibMagic',
     'VERSION_FROM'	=> 'LibMagic.pm', # finds $VERSION
     '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'		=> [$ENV{LDFLAGS} . ' -lmagic -lz'], # 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: