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

Bug#613046: debian-policy: please update example in 4.9.1 (debian/rules and DEB_BUILD_OPTIONS)

Charles Plessy <plessy@debian.org> writes:

> By the way, I read in the paragraph describing noopt:

>   For C programs, it is best to add -O0 to CFLAGS (although this is
>   usually the default).

> Isn't that a bit outdated ?  I see -O2 or superior in most of my
> packages.

This is specifically in the context of implementing the noopt build
option.  -O0 explicitly disables gcc optimization.  However, gcc does not
optimize by default, so omitting the flag entirely also works.  That's the
point of the parenthetical.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: