[Devel] Re: debian rules overwrites CFLAGS
Julien BLACHE
jblache at debian.org
Tue Dec 19 17:52:22 CET 2006
Juha Heinanen <jh at tutpro.com> wrote:
Hi,
> when i make openser debian packages. its turns out that debian/rules
> overwrites CFLAGS as defined by Makefile.defs like this:
>
> CFLAGS = -Wall -g
>
> is this intentional or can i remove the line and commit the change?
It is intentional. The default CFLAGS are broken in a number of ways,
of which I'll mention:
- -O9 doesn't exist. Optimization levels range from 0 to 3
- -finline-all-stringops is only available on a few architectures
And I fear that the default CFLAGS set by Makefile.defs may in fact
hide some real, legitimate warnings, but I can't remember the exact
flags used.
Moreover this is needed to build a proper debug version of the Debian
package (using DEB_BUILD_OPTIONS at build time).
> at the same time, i could commit dan's error report in the init file.
Please do. I'm still lagging behind, trying to catch up.
JB.
--
Julien BLACHE <jblache at debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
More information about the Devel
mailing list