[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] build: preserve debug symbols with --enable-deb
From: |
Olaf Hering |
Subject: |
Re: [Qemu-devel] [PATCH] build: preserve debug symbols with --enable-debug-info |
Date: |
Thu, 25 Sep 2014 12:47:37 +0200 |
User-agent: |
Mutt/1.5.22.rev6346 (2013-10-29) |
On Thu, Sep 25, Peter Maydell wrote:
> On 25 September 2014 09:06, Olaf Hering <address@hidden> wrote:
> > During code review for xen I noticed that --enable-debug-info would
> > still strip the binaries because strip_opt= defaults to yes.
> > If --enable-debug-info is passed to configure it has to be assumed
> > that not only the compiled binaries have debugsymbols, also the
> > installed binaries should keep the symbols. The requirement to pass
> > also --disable-strip looks odd.
>
> I think defaulting to build with debug but strip on install
> makes sense. It follows for example how Debian recommend
> building things:
> https://www.debian.org/doc/debian-policy/ch-files.html
> and means that your installed binaries don't have the
> extraneous debug info but you can keep the build tree
> to make sense of backtraces etc later.
make install DESTIDIR=$RPM_BUILD_ROOT will also remove debug symbols,
even if the rpmbuild helper scripts would be able to extract them into a
separate -debuginfo package.
So will --disable-strip remain for ever? Can I depend on that?
Olaf