pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh
dholland 6b3fa458db Don't hardwire /usr/pkg; use $PREFIX instead. This fixes various
problems with linking and rpaths, such as the NetBSD manifestation of
PR 47187, and probably others; I haven't tried yet but I suspect at
least my manifestation of PR 44985 will be fixed too.
2013-01-03 10:11:34 +00:00

20 lines
614 B
Bash

$NetBSD: patch-hints_netbsd.sh,v 1.3 2013/01/03 10:11:34 dholland Exp $
--- hints/netbsd.sh~ 2012-10-11 18:20:45.000000000 +0000
+++ hints/netbsd.sh
@@ -186,10 +186,12 @@ esac
EOCBU
# Set sensible defaults for NetBSD: look for local software in
-# /usr/pkg (NetBSD Packages Collection) and in /usr/local.
+# /usr/local, plus the build prefix, which might or might not be
+# /usr/pkg.
#
-loclibpth="/usr/pkg/lib /usr/local/lib"
-locincpth="/usr/pkg/include /usr/local/include"
+loclibpth="/usr/local/lib ${prefix}/lib"
+locincpth="/usr/local/include ${prefix}/include"
+
case "$rpathflag" in
'')
ldflags=