]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_shlibdeps
r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson
[debhelper.git] / dh_shlibdeps
index 0456a2dc588082dcce414de73fea55630379ef79..a0666b939e3e4cc5a8d9f8906cf6a75e39818263 100755 (executable)
@@ -2,6 +2,7 @@
 #
 # Find dependancies. Simple dpkg-shlibdeps wrapper.
 
+use Cwd;
 use Debian::Debhelper::Dh_Lib;
 init();
 
@@ -29,6 +30,14 @@ 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} \\");
+               }
                doit("dpkg-shlibdeps","-Tdebian/${EXT}substvars",@{$dh{U_PARAMS}},'-dDepends',@filelist);
        }
 }