-Xitem, --exclude=item
Exclude files that contain item anywhere in their filename from being stripped. You may use this
option multiple times to build up a list of things to exclude.
--dbg-package=packageThisoptionisanowspecialpurposeoptionthatyounormallydonotneed. In most cases, there
should be little reason to use this option for new source packages as debhelper automatically
generates debug packages ("dbgsym packages"). Ifyouhaveamanual--dbg-package that you want to
replace with an automatically generated debug symbol package, please see the --dbgsym-migration
option.
Causes dh_strip to save debug symbols stripped from the packages it acts on as independent files in
the package build directory of the specified debugging package.
For example, if your packages are libfoo and foo and you want to include a foo-dbg package with
debugging symbols, use dh_strip--dbg-package=foo-dbg.
This option implies --no-automatic-dbgsym and cannot be used with --automatic-dbgsym or
--dbgsym-migration.
-k, --keep-debugThisoptionisanowspecialpurposeoptionthatyounormallydonotneed. In most cases, there
should be little reason to use this option for new source packages as debhelper automatically
generates debug packages ("dbgsym packages"). Ifyouhaveamanual--dbg-package that you want to
replace with an automatically generated debug symbol package, please see the --dbgsym-migration
option.
Debug symbols will be retained, but split into an independent file in usr/lib/debug/ in the package
build directory. --dbg-package is easier to use than this option, but this option is more flexible.
This option implies --no-automatic-dbgsym and cannot be used with --automatic-dbgsym.
--dbgsym-migration=package-relation
This option is used to migrate from a manual "-dbg" package (created with --dbg-package) to an
automatic generated debug symbol package. This option should describe a valid Replaces- and
Breaks-relation, which will be added to the debug symbol package to avoid file conflicts with the
(now obsolete) -dbg package.
This option implies --automatic-dbgsym and cannot be used with --keep-debug, --dbg-package or
--no-automatic-dbgsym.
Examples:
dh_strip --dbgsym-migration='libfoo-dbg (<< 2.1-3~)'
dh_strip --dbgsym-migration='libfoo-tools-dbg (<< 2.1-3~), libfoo2-dbg (<< 2.1-3~)'
--automatic-dbgsym, --no-automatic-dbgsym
Control whether dh_strip should be creating debug symbol packages when possible.
The default is to create debug symbol packages.
--ddebs, --no-ddebs
Historical name for --automatic-dbgsym and --no-automatic-dbgsym.
--ddeb-migration=package-relation
Historical name for --dbgsym-migration.
--keep-lto
Sections containing information generated by -flto-ffat-lto-objects are normally removed from static
archives, because the streaming format changes even in minor GCC versions, and because cross package
link time optimizations are normally not desired. This option allows to keep this information in the
static libraries.