summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.sys.mk2
-rw-r--r--share/mk/sys.mk7
2 files changed, 5 insertions, 4 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index c9698d2..96432c1 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -8,8 +8,6 @@
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
-NO_WERROR=
-
.if !defined(NO_WARNS) && ${CC} != "icc"
. if defined(CSTD)
. if ${CSTD} == "k&r"
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index b4dd8ed..a15331f 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -36,9 +36,12 @@ CFLAGS ?= -O
.else
CC ?= cc
.if ${MACHINE_ARCH} == "arm"
-CFLAGS ?= -O -fno-strict-aliasing -pipe
+CFLAGS ?= -O -pipe
.else
-CFLAGS ?= -O2 -fno-strict-aliasing -pipe
+CFLAGS ?= -O2 -pipe
+.endif
+.if defined(NO_STRICT_ALIASING)
+CFLAGS += -fno-strict-aliasing
.endif
.endif
OpenPOWER on IntegriCloud