X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_shlibdeps;h=a0666b939e3e4cc5a8d9f8906cf6a75e39818263;hb=eebc4a40e8f8aeebefef2cfeda2731b33d3ff1b0;hp=237d92db5a0dbb648fd1e7819dc86df1ce6643f1;hpb=72d1cf3a58e7588228cfb6155669c978d7a9cccb;p=debhelper.git diff --git a/dh_shlibdeps b/dh_shlibdeps index 237d92d..a0666b9 100755 --- a/dh_shlibdeps +++ b/dh_shlibdeps @@ -2,6 +2,7 @@ # # Find dependancies. Simple dpkg-shlibdeps wrapper. +use Cwd; use Debian::Debhelper::Dh_Lib; init(); @@ -30,6 +31,10 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (@filelist) { if ($dh{L_PARAMS}) { + # Force the path absolute. + unless ($dh{L_PARAMS}=~m:^/:) { + $dh{L_PARAMS}=getcwd()."/$dh{L_PARAMS}"; + } $ENV{'LD_LIBRARY_PATH'}=$dh{L_PARAMS}; verbose_print("LD_LIBRARY_PATH=$dh{L_PARAMS} \\"); }