Skip to content

RFE: Add configure/makefile options to keep debug symbols in separate files on platforms that can do so #3407

@jimklimov

Description

@jimklimov

Typically Debian packaging does this, so inspiration can start there; Windows may support PDB(?) files to offload debug data from binaries.

Either way, we can end up with less bloated program/library binaries without compromising debug-ability to troubleshoot end-user deployments better when needed.

Example from make install(-stripped) DESTDIR=... of the same build lets us gauge possible installation footprint savings from optionally installing debug data, about 2x on that platform:

$ du -ks ~/nut-inst/*ped
8150    /data/data/com.termux/files/home/nut-inst/stripped
14070   /data/data/com.termux/files/home/nut-inst/unstripped

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)enhancementimpacts-release-2.8.5Issues reported against NUT release 2.8.5 (maybe vanilla or with minor packaging tweaks)packagingportabilityWe want NUT to build and run everywhere possible

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions