summaryrefslogtreecommitdiff
path: root/dh_shlibdeps
diff options
context:
space:
mode:
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 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} \\");
}