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

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to