Add -fno-strict-alias whenever someone is compiling with -O2,
unconditionally.
This commit is contained in:
parent
17d56bdd53
commit
39ed0204bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user