Compiling with 'strict-aliasing' optimization breaks some [notable] ports.

GCC turns on 'strict-aliasing' optimization at all levels above -O[1], so
explicitly turn it off when using compiling with the -O2 optimization level.
This commit is contained in:
David E. O'Brien 2004-11-11 01:09:56 +00:00
parent f9faa1eb23
commit 96b8536954

View file

@ -37,7 +37,7 @@ CC ?= c89
CFLAGS ?= -O
.else
CC ?= cc
CFLAGS ?= -O2 -pipe
CFLAGS ?= -O2 -fno-strict-aliasing -pipe
.endif
CXX ?= c++