svn commit: r370556 - head/Mk
Tijl Coosemans
tijl at FreeBSD.org
Thu Oct 9 17:59:02 UTC 2014
Author: tijl
Date: Thu Oct 9 17:59:01 2014
New Revision: 370556
URL: https://svnweb.freebsd.org/changeset/ports/370556
QAT: https://qat.redports.org/buildarchive/r370556/
Log:
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)
Modified:
head/Mk/bsd.port.mk
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Thu Oct 9 16:48:27 2014 (r370555)
+++ head/Mk/bsd.port.mk Thu Oct 9 17:59:01 2014 (r370556)
@@ -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
More information about the svn-ports-head
mailing list