summaryrefslogtreecommitdiff
path: root/dh_strip
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-01-02 08:54:02 +0000
committerNiels Thykier <niels@thykier.net>2018-01-02 08:54:02 +0000
commit847e5b8a4657323152eb5d224d0b82277a511270 (patch)
treeccd0cc8fb61f0673782660913e8e9da062594f64 /dh_strip
parent7844105dbb1eba6220fdcc6394f34da3979f87e9 (diff)
downloaddebhelper-847e5b8a4657323152eb5d224d0b82277a511270.tar.gz
dh_strip: Do not strip debug symbols in the .build-id dir
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_strip')
-rwxr-xr-xdh_strip3
1 files changed, 3 insertions, 0 deletions
diff --git a/dh_strip b/dh_strip
index 56ae0522..40062513 100755
--- a/dh_strip
+++ b/dh_strip
@@ -182,6 +182,9 @@ sub testfile {
$File::Find::prune = 1 if -d _;
return;
}
+ # Ignore the .../debug/.build-id/ directory. It is not really helpful
+ # to strip debug symbols.
+ $File::Find::prune = 1 if -d _ && index($fn, '/debug/.build-id/') > -1;
return if -d _;
# Is it a debug library in a debug subdir?