Add -fno-strict-alias whenever someone is compiling with -O2,

unconditionally.
This commit is contained in:
imp 2005-01-26 21:35:55 +00:00
parent 0af1181586
commit 0ebf60befa

View File

@ -71,6 +71,7 @@ OBJCOPY?= objcopy
CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
.else
WERROR?= -Werror
CFLAGS:= ${CFLAGS:C/-O2/-O2 -fno-strict-alias/}
.endif
CFLAGS+= ${WERROR}
CFLAGS+= -D_KERNEL