blob: 9342719cf78ec4f35ae54c03078a950550e9590c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-config_config__perl.pl,v 1.3 2013/09/09 20:35:07 wiz Exp $
add rpath for pkgsrc
--- config/config_perl.pl.orig 2013-08-01 17:35:15.000000000 +0000
+++ config/config_perl.pl
@@ -4,7 +4,7 @@ if ($ARGV[0] eq "PERL_LIBS") {
$archlib = $Config{archlib};
$libperl = $Config{libperl};
$libperl =~ s/lib([^\.]+).*/$1/;
- print "-L$archlib/CORE -l$libperl";
+ print "-Wl,-rpath,$archlib/CORE -L$archlib/CORE -l$libperl";
}
if ($ARGV[0] eq "PERL_INCLUDES") {
$archlib = $Config{archlib};
|