[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default -g ??!?
From: |
Roger Leigh |
Subject: |
Re: default -g ??!? |
Date: |
Sat, 20 Nov 2010 17:31:32 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Sat, Nov 20, 2010 at 10:36:34AM -0500, MK wrote:
> Ah, it's because of GNU make:
>
> "By default, the Make rules should compile and link with -g, so that
> executable programs have debugging symbols. Users who don't mind being
> helpless can strip the executables later if they wish."
>
> Nice, flexible software it ain't.
>
> This is an assbackward policy. The idea that general, non-programmer
> users will be "helpless" without debugging symbols is completely
> absurd.
What actual problems are the debugging symbols causing you?
What is the wrong with the default?
> If and when you do need debugging symbols, it should be easy to opt
> *for* them. Instead, I am left with the choice of leaving them in by
> default, or having to use "strip", making it impossible to add them.
Automake already provides an "install-strip" target for just this
purpose.
Most users are unaware if they are running stripped or unstripped
binaries, but when a user runs into problems, it's nice to have
unstripped binaries around for diagnostic purposes. It's also
contrary to the defaults, and what most people would expect, given
that pretty much every other automake-using package does the
opposite of what you want!
For Debian at least, we want unstripped binaries by default. We'll
do the stripping later. There is a reason for this. We provide
"-dbg" packages, which nowadays contain detached debugging symbols.
The dh_strip program handles this as already mentioned.
In the future, we may end up taking a similar path to Ubuntu and
automatically produce .ddebs (debug .deb packages) containing the
stripped debug info for every single package built, or even allow
direct download of symbols from a central database.
Having unstripped binaries is contrary to all these goals. Note that
this is not unique to Debian; all distributions want to have debug
symbols for end-user diagnostics, and we don't want to ask the user
to recompile with debug symbols enabled--they would then not be using
the same binaries, which might not exhibit the same behaviour.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature
- Re: default -g ??!?, (continued)
- Re: default -g ??!?, MK, 2010/11/20
- Re: default -g ??!?, Paul Smith, 2010/11/20
- Re: default -g ??!?, MK, 2010/11/20
- Re: default -g ??!?, Bob Friesenhahn, 2010/11/20
- Re: default -g ??!?, MK, 2010/11/20
- Re: default -g ??!?, Ralf Wildenhues, 2010/11/20
- Re: default -g ??!?,
Roger Leigh <=
- Re: default -g ??!?, MK, 2010/11/20
- Re: default -g ??!?, Bob Friesenhahn, 2010/11/20
- Re: default -g ??!?, MK, 2010/11/20
- Re: default -g ??!?, Miles Bader, 2010/11/20
- Re: default -g ??!?, MK, 2010/11/21
- reword documentation about symbol stripping (was: default -g ??!?), Ralf Wildenhues, 2010/11/21
- Re: reword documentation about symbol stripping (was: default -g ??!?), MK, 2010/11/21
- Re: reword documentation about symbol stripping, John Calcote, 2010/11/21
- Re: reword documentation about symbol stripping, Miles Bader, 2010/11/21
- Re: reword documentation about symbol stripping, John Calcote, 2010/11/21