--- perl-5.8.7/lib/ExtUtils/MM_Unix.pm 2005-09-10 14:06:59.000000000 +0200 +++ perl-5.8.7.az/lib/ExtUtils/MM_Unix.pm 2005-09-10 15:10:46.000000000 +0200 @@ -1915,6 +1915,9 @@ # LD_RUN_PATH now computed by ExtUtils::Liblist ($self->{EXTRALIBS}, $self->{BSLOADLIBS}, $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs; + # We do not want the build root in RPATH + $self->{LD_RUN_PATH} = join ':', grep m!^/(?:usr|opt)!, split /:/, + $self->{LD_RUN_PATH}; last; } }