| @@ -1,15 +1,28 @@ | | | @@ -1,15 +1,28 @@ |
1 | $NetBSD: patch-aa,v 1.3 2009/05/17 13:54:38 sno Exp $ | | 1 | $NetBSD: patch-aa,v 1.4 2009/05/30 20:02:07 sno Exp $ |
2 | | | 2 | |
3 | Ensure we use the required ldflags for the platform. | | 3 | - Remove Devel::CheckLib invocation - it#s useless and won't work |
| | | 4 | (RT #46543, #43826) |
| | | 5 | - Ensure we use the required ldflags for the platform. |
4 | | | 6 | |
5 | --- Makefile.PL.orig 2009-05-12 13:31:06.000000000 +0000 | | 7 | --- Makefile.PL.orig 2009-05-12 13:31:06.000000000 +0000 |
6 | +++ Makefile.PL 2009-05-17 13:36:43.000000000 +0000 | | 8 | +++ Makefile.PL 2009-05-30 19:47:40.000000000 +0000 |
7 | @@ -15,7 +15,7 @@ | | 9 | @@ -4,18 +4,13 @@ |
| | | 10 | use ExtUtils::MakeMaker; |
| | | 11 | use Config qw/%Config/; |
| | | 12 | |
| | | 13 | -use lib qw(inc); |
| | | 14 | -use Devel::CheckLib; |
| | | 15 | - |
| | | 16 | -check_lib_or_exit( lib => 'magic', header => 'magic.h' ); |
| | | 17 | - |
| | | 18 | WriteMakefile( |
| | | 19 | 'NAME' => 'File::LibMagic', |
| | | 20 | 'VERSION_FROM' => 'LibMagic.pm', # finds $VERSION |
8 | 'PREREQ_PM' => { }, | | 21 | 'PREREQ_PM' => { }, |
9 | 'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module | | 22 | 'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module |
10 | 'AUTHOR' => 'Andreas Fitzner <andreas.fitzner@fv-berlin.de>', | | 23 | 'AUTHOR' => 'Andreas Fitzner <andreas.fitzner@fv-berlin.de>', |
11 | - 'LIBS' => ['-lmagic -lz'], # e.g., '-lm' | | 24 | - 'LIBS' => ['-lmagic -lz'], # e.g., '-lm' |
12 | + 'LIBS' => [$ENV{LDFLAGS} . ' -lmagic -lz'], # e.g., '-lm' | | 25 | + 'LIBS' => [$ENV{LDFLAGS} . ' -lmagic -lz'], # e.g., '-lm' |
13 | 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' | | 26 | 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' |
14 | 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' | | 27 | 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' |
15 | # Un-comment this if you add C files to link with later: | | 28 | # Un-comment this if you add C files to link with later: |