$NetBSD: patch-aa,v 1.2 2009/03/10 23:35:02 he Exp $

Ensure we use the required ldflags for the platform.

--- Makefile.PL.orig	2008-08-06 10:56:22.000000000 +0200
+++ Makefile.PL	2008-09-18 11:48:17.459072000 +0200
@@ -12,7 +12,7 @@
     'PREREQ_PM'		=> {}, # e.g., Module::Name => 1.1
     'ABSTRACT_FROM'     => 'LibMagic.pm', # retrieve abstract from module
     'AUTHOR'            => 'Andreas Fitzner <fitzner@informatik.hu-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:
