Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 105054 | Differences between
and this patch

Collapse All | Expand All

(-)perl-5.8.7/lib/ExtUtils/MM_Unix.pm (+11 lines)
Lines 1915-1920 Link Here
1915
	    # LD_RUN_PATH now computed by ExtUtils::Liblist
1915
	    # LD_RUN_PATH now computed by ExtUtils::Liblist
1916
	    ($self->{EXTRALIBS},  $self->{BSLOADLIBS}, 
1916
	    ($self->{EXTRALIBS},  $self->{BSLOADLIBS}, 
1917
             $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
1917
             $self->{LDLOADLIBS}, $self->{LD_RUN_PATH}) = @libs;
1918
	    # We do not want the build root in RPATH
1919
	    if (exists $ENV{PORTAGE_TMPDIR}) {
1920
	      # If we have PORTAGE_TMPDIR set, strip that, as just testing for
1921
	      # /usr and /opt might not be sufficient
1922
	      $self->{LD_RUN_PATH} = join ':', grep /.../ && !/^\Q$ENV{PORTAGE_TMPDIR}/,
1923
	                             split /:/, $self->{LD_RUN_PATH};
1924
	    } else {
1925
	      # Else just use /usr and /opt paths, and hope for the best
1926
	      $self->{LD_RUN_PATH} = join ':', grep m!^/(?:usr|opt)!, split /:/,
1927
	                             $self->{LD_RUN_PATH};
1928
	    }
1918
	    last;
1929
	    last;
1919
	}
1930
	}
1920
    }
1931
    }

Return to bug 105054