From eebc4a40e8f8aeebefef2cfeda2731b33d3ff1b0 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 1 Feb 2001 21:37:28 +0000 Subject: r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson , Closes: #84408 --- dh_shlibdeps | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dh_shlibdeps') diff --git a/dh_shlibdeps b/dh_shlibdeps index 237d92db..a0666b93 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} \\"); } -- cgit v1.2.3