Further embellish rev. 1.180: protect against -fno-strict-aliasing
being already in CFLAGS (as is the case with "make buildkernel"). NB: rev. 1.180 is only needed due to a broken setting of CFLAGS in tinderbox.
This commit is contained in:
parent
19b5577638
commit
f165cb7c5d
@ -70,8 +70,8 @@ OBJCOPY?= objcopy
|
||||
.if ${CC} == "icc"
|
||||
CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
|
||||
.else
|
||||
. if ${CFLAGS:M-O[23s]} != ""
|
||||
CFLAGS+= -fno-strict-aliasing
|
||||
. if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
|
||||
CFLAGS+= -fno-strict-aliasing
|
||||
. endif
|
||||
WERROR?= -Werror
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user