summaryrefslogtreecommitdiff
path: root/dh_shlibdeps
diff options
context:
space:
mode:
authorjoey <joey>2001-02-01 21:37:28 +0000
committerjoey <joey>2001-02-01 21:37:28 +0000
commiteebc4a40e8f8aeebefef2cfeda2731b33d3ff1b0 (patch)
tree1cea7938e4f20a2c933d22bcb6b081022e5028ae /dh_shlibdeps
parent72d1cf3a58e7588228cfb6155669c978d7a9cccb (diff)
r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson
<cjw44@flatline.org.uk>, Closes: #84408
Diffstat (limited to 'dh_shlibdeps')
-rwxr-xr-xdh_shlibdeps5
1 files changed, 5 insertions, 0 deletions
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} \\");
}