--- 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 14:07:05.000000000 +0200 @@ -1914,7 +1914,10 @@ if ($libs[0] or $libs[1] or $libs[2]){ # LD_RUN_PATH now computed by ExtUtils::Liblist ($self->{EXTRALIBS}, $self->{BSLOADLIBS}, - $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs; + $self->{LDLOADLIBS}) = @libs; + # We do not want the build root in RPATH + my @new_libs = grep m!^/usr!, split /:/, join ':', @libs; + $self->{LD_RUN_PATH} = join(':',@new_libs); last; } }