X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_shlibdeps;h=ebba4746a26132858ae87564b6b9451603863538;hb=abb4a093bd111a1f01d73eb2e84c015830d04f1f;hp=552687e491f04c90e36563135b469b8276d4b024;hpb=d7b306162c16a3d261fe6c7420ac484ac3d9f3ea;p=debhelper.git diff --git a/dh_shlibdeps b/dh_shlibdeps index 552687e..ebba474 100755 --- a/dh_shlibdeps +++ b/dh_shlibdeps @@ -42,7 +42,7 @@ may be used more than once to exclude more than one thing. =item B<-l>I[:directory:directory:..] -Before dpkg-shlibdeps is run, LD_LIBRARY_PATH will be set to the +Before dpkg-shlibdeps is run, LD_LIBRARY_PATH will have added to it the specified directory (or directories -- separate with colons). This is useful for multi-binary packages where a library is built in one package and another package contains binaries linked against said @@ -79,6 +79,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (@filelist) { if ($dh{L_PARAMS}) { my @paths=(); + # Add to existing paths, if set. + push @paths, $ENV{'LD_LIBRARY_PATH'} + if exists $ENV{'LD_LIBRARY_PATH'} foreach (split(/:/, $dh{L_PARAMS})) { # Force the path absolute. if (m:^/:) {