Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 2014 17:59:01 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370556 - head/Mk
Message-ID:  <201410091759.s99Hx1c3018567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410091759.s99Hx1c3018567>