[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why -g flag?



> The idea is to build the program with -g -O2, then install it in the
> debian/tmp tree and strip it.  That gets you the following advantages:
> 
>    - The installed binary is stripped and fully optimized.
>    - It's easy to get an unstripped binary: just run debian/build,
>      no makefile tinkering necessary.
>    - The unstripped binary is useful for debugging core files generated
>      by the installed binary.
> 
> This is all described in the policy manual, section 4.1.
> 
> Richard Braakman

Ah, that's it!  I didn't realise that -g followed by strip is at least
as small as using neither.  So my concerns are unfounded.

Thanks for the explanation,

   Julian

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
             Debian GNU/Linux Developer.  jdg@debian.org
       -*- Finger jdg@master.debian.org for my PGP public key. -*-


Reply to: