[Devel] Re: debian rules overwrites CFLAGS

Juha Heinanen jh at tutpro.com
Tue Dec 19 18:25:14 CET 2006


Julien BLACHE writes:

 > 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

folks, can i fix this in Makefile.defs by replacing -O9 with -O2?

 >  - -finline-all-stringops is only available on a few architectures

Makefile.defs tries to test that:

ifeq			($(CC_CLASS), 4.x)
					CPU ?= athlon64
					CFLAGS+=-minline-all-stringops \
							-falign-loops \
							-ftree-vectorize \
							-mtune=$(CPU) 
else
			#if gcc 3.0+
ifeq			($(CC_CLASS), 3.x)
					CPU ?= athlon
					CFLAGS+=-minline-all-stringops \
							-falign-loops \
							-mcpu=$(CPU) 

in my opinion it is better to fix Makefile.defs rather than overwrite
what it is doing.

-- juha



More information about the Devel mailing list