mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 08:37:50 -04:00
Add -fno-strict-alias whenever someone is compiling with -O2,
unconditionally.
This commit is contained in:
parent
17d56bdd53
commit
39ed0204bc
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue