[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.

Debug the -O2 optimized program ? I don't think that it's the best
debugging method... :)

-- 
Madarasz Gergely           gorgo@caesar.elte.hu         gorgo@linux.rulez.org
          Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
                    HuLUG: http://mlf.linux.rulez.org/


Reply to: