pkgsrc/textproc/p5-XML-Parser/patches/patch-aa

15 lines
556 B
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.2 2010/09/19 11:07:12 wiz Exp $
--- Makefile.PL.orig 2010-09-15 21:49:46.000000000 +0000
+++ Makefile.PL
@@ -75,7 +75,8 @@ if (not $expat_libpath and $] >= 5.00600
unless ($expat_libpath) {
# Test for existence of libexpat
my $found = 0;
- foreach (split(/\s+/, $Config{libpth})) {
+ # HF: look in the perl base dir too, as libpth may not be installed:
+ foreach ( $Config{prefix} . "/lib" , split(/\s+/, $Config{libpth})) {
if (-f "$_/libexpat." . $Config{so}) {
$expat_libpath=$_;
$found = 1;