Re: compiling packages
On Sat, 2007-05-26 at 06:14:46 +0100, Oliver Elphick wrote:
> On Sat, 2007-05-26 at 03:29 +0200, Oliver Block wrote:
> > I am not very familiar with the debian developer tools. How to
> > recompile a package with debuggin option (gcc -g)?
> 1. Change the Makefile and/or debian/rules as necessary to add -g to the
> compilation options.
Per policy all binaries should be compiled with debugging information.
> 2. In debian/rules, comment out the instruction to strip the binaries
> (such as dh_strip).
And most are going to support DEB_BUILD_OPTIONS=nostrip (if they don't
you could file a bug report).
> Packages are too diverse to give a method that will work for every one.
DEB_BUILD_OPTIONS is supposedly that method.