Modern compilers have more -O* flags that enable strict aliasing. Instead

of listing each one, just add -fno-strict-aliasing to CFLAGS unconditionally

PR:		186929
Exp-run by:	antoine
Approved by:	portmgr (antoine)
This commit is contained in:
Tijl Coosemans 2014-10-09 17:59:01 +00:00
parent 2c6f84e2c0
commit 2210fec0e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370556

View file

@ -2038,7 +2038,7 @@ MAKE_ENV+= PREFIX=${PREFIX} \
# a lot of ports.
.if !defined(WITHOUT_NO_STRICT_ALIASING)
.if ${CC} != "icc"
.if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
.if empty(CFLAGS:M-fno-strict-aliasing)
CFLAGS+= -fno-strict-aliasing
.endif
.endif