X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_strip;h=4dc69616f971a5678374526e172a577f948a4ba5;hb=a4cf3e83f425663c6c190791fe3ea92b7143191a;hp=a38a66be30fb46494babc45bfa8490fc089b3725;hpb=e845fcc47b244db30a8d19eaaf927de1d8c0a073;p=debhelper.git diff --git a/dh_strip b/dh_strip index a38a66b..4dc6961 100755 --- a/dh_strip +++ b/dh_strip @@ -166,7 +166,12 @@ sub make_debug { if (! -d $debug_dir) { doit("install", "-d", $debug_dir); } - doit($objcopy, "--only-keep-debug", $file, $debug_path); + if (compat(8)) { + doit($objcopy, "--only-keep-debug", $file, $debug_path); + } + else { + doit($objcopy, "--only-keep-debug", "--compress-debug-sections", $file, $debug_path); + } # No reason for this to be executable. doit("chmod", 644, $debug_path); return $debug_path;