diff options
author | tijl <tijl@FreeBSD.org> | 2014-10-10 01:59:01 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-10-10 01:59:01 +0800 |
commit | 6f37f0e76a4246e4c741c2e9220c97d25ded3bca (patch) | |
tree | cecdacc59608960756bad50d41944de5383da803 /Mk | |
parent | be5f36c4180029dc44e85db73df10c226a4f6714 (diff) | |
download | freebsd-ports-gnome-6f37f0e76a4246e4c741c2e9220c97d25ded3bca.tar.gz freebsd-ports-gnome-6f37f0e76a4246e4c741c2e9220c97d25ded3bca.tar.zst freebsd-ports-gnome-6f37f0e76a4246e4c741c2e9220c97d25ded3bca.zip |
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)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 407763cfc16c..22d7e08ce521 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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 |