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

unconditionally.
This commit is contained in:
Warner Losh 2005-01-26 21:35:55 +00:00
parent 17d56bdd53
commit 39ed0204bc

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