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

Bug#157131: PROPOSAL] Suggest to minimize optimization when DEB_BUILD_OPTIONS contains "debug"



On Sat, Aug 17, 2002 at 10:41:11PM -0400, Colin Walters wrote:
> Package: debian-policy
> Severity: wishlist
> 
> The attached patch should mostly speak for itself.  I think it's great
> that a lot of packages support DEB_BUILD_OPTIONS=debug now, but if the
> program is compiled with optimization, it's very difficult to debug.

You might want to add a warning that this needs to be tested.  Some
packages, like glibc or the Hurd, can not be built without optimization
(for example because of inline functions not being inlined).

I guess this is the exception, and the vast majority of packages build with
-O0 just fine.  But where it fails it fails spectacularly :)

As for me personally, I have made peace with -O2 code.  stepi is your friend ;)

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/



Reply to: