summaryrefslogtreecommitdiff
path: root/dh_shlibdeps
diff options
context:
space:
mode:
Diffstat (limited to 'dh_shlibdeps')
-rwxr-xr-xdh_shlibdeps7
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_shlibdeps b/dh_shlibdeps
index c36abb4..b5b0ff5 100755
--- a/dh_shlibdeps
+++ b/dh_shlibdeps
@@ -135,7 +135,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
@opts,@{$dh{U_PARAMS}},@filelist);
if ($dh{L_PARAMS}) {
- $ENV{LD_LIBRARY_PATH}=$ld_library_path_orig;
+ if (defined $ld_library_path_orig) {
+ $ENV{LD_LIBRARY_PATH}=$ld_library_path_orig;
+ }
+ else {
+ delete $ENV{LD_LIBRARY_PATH};
+ }
}
}
}