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:
parent
2c6f84e2c0
commit
2210fec0e9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370556
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue