|
Boost-Build : |
Subject: Re: [Boost-build] [gcc] separate debug infos
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-01-26 03:52:49
"Juergen Hunold" <juergen.hunold_at_[hidden]> wrote in message
news:200901212120.45491.juergen.hunold_at_ivembh.de...
Hi !
>I've stumpled across a trick used by Qt's qmake to reduce the size of
>library and executables. Qt's configure --help >calls this
>"-separate-debug-info .... Strip debug information into a separate .debug
>file."
[snip]
>This proof of concept works (for me), but now comes the hard part:
>I've got no idea how to _really_ incorporate this into the current gcc
>toolchain. The way would be:
>- introduce a new feature "separate-debug-info : off on ;"
The msvc toolset has the <debug-store> feature with "database" being one of
the available options (which stores debug info into a program database / pdb
file). How about streamlining your suggestion with this (or the opposite way
around)?
>- if this feature is "on", add a post link step which will execute steps
>1-4 above.
>- introduce a new feature "install-separate-debug-info" to the "install"
>rule (needed if you want to have everything >ready for packaging etc.).
With proper toolset(?) support, perhaps using <install-type>DBGSYM with the
install rule would be sufficient?
/ Johan
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk