If you want -debuginfo per-package, then disable the automagic generation of -debuginfo
and stripping, and just add symbols to the executables.
Any other scheme that divvies up files into smaller per-binary-pkg -debuginfo packages
is unlikely to be workable. E.g. consider what happens when a library is used for several
binary packages. The library -debuginfo would have to be shared or included for each package.
And if not a library, just a file that is linked into several packages, then there is no obvious
way to choose where the file -debuginfo needs to be put.
If you want -debuginfo per-package, then disable the automagic generation of -debuginfo
and stripping, and just add symbols to the executables.
Any other scheme that divvies up files into smaller per-binary-pkg -debuginfo packages
is unlikely to be workable. E.g. consider what happens when a library is used for several
binary packages. The library -debuginfo would have to be shared or included for each package.
And if not a library, just a file that is linked into several packages, then there is no obvious
way to choose where the file -debuginfo needs to be put.