]> 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 237d92db5a0dbb648fd1e7819dc86df1ce6643f1..a0666b939e3e4cc5a8d9f8906cf6a75e39818263 100755 (executable)
@@ -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} \\");
                }