summaryrefslogtreecommitdiff
path: root/textproc/p5-XML-Parser/patches/patch-aa
blob: 031e6b9b792ad13246bdb2b6051585d7e3390c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$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;