Paths listed in LD_LIBRARY_PATH were not added at the beginning of the search
path if they were part of the default search paths. Remove this restriction
so that it's possible to change the search order in default paths by using
this variable.
not found by "dpkg -S", try the same on the realpath of the
library as fallback before deciding that it's a library being
built.
-
+ * scripts/Dpkg/Shlibs.pm: Always add paths from LD_LIBRARY_PATH
+ at the beginning of the list of path to search, even if they
+ are already listed (one might want to use LD_LIBRARY_PATH to
+ change the search order).
2007-11-21 Raphael Hertzog <hertzog@debian.org>
if ($ENV{LD_LIBRARY_PATH}) {
foreach my $path (reverse split( /:/, $ENV{LD_LIBRARY_PATH} )) {
$path =~ s{/+$}{};
- unless (scalar grep { $_ eq $path } @librarypaths) {
- unshift @librarypaths, $path;
- }
+ unshift @librarypaths, $path;
}
}