diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index 09e28c04..136fc527 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -89,6 +89,11 @@ collect_debug_symbols() { return fi + # add GDB index if gdb-add-index is present + if type -p gdb-add-index >/dev/null; then + gdb-add-index "$binary" + fi + # copy source files to debug directory package_source_files "$binary"