From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX6ac-0006LG-0h for qemu-devel@nongnu.org; Thu, 25 Sep 2014 06:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX6aa-00043n-Bg for qemu-devel@nongnu.org; Thu, 25 Sep 2014 06:47:57 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::1]:64429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX6aa-0003zl-17 for qemu-devel@nongnu.org; Thu, 25 Sep 2014 06:47:56 -0400 Date: Thu, 25 Sep 2014 12:47:37 +0200 From: Olaf Hering Message-ID: <20140925104737.GA14304@aepfle.de> References: <1411632395-10516-1-git-send-email-olaf@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] build: preserve debug symbols with --enable-debug-info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Michael Tokarev , QEMU Developers , Stefan Hajnoczi , Stefan Weil On Thu, Sep 25, Peter Maydell wrote: > On 25 September 2014 09:06, Olaf Hering 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