blob: 54be9d5b7cb0841a924dc7a2df64dcae622bf0d6 [file] [log] [blame] [raw]
Option '-O' to c89(1) is not POSIX compliant.
No longer default lower optimization level for arm.
diff -ru --exclude-from freebsd-src-diff-exclude-names --new-file /var/archive3/public/freebsd-releng-10.4-src/share/mk/sys.mk freebsd-10.4/share/mk/sys.mk
--- /var/archive3/public/freebsd-releng-10.4-src/share/mk/sys.mk 2017-09-29 08:20:20.000000000 +0800
+++ freebsd-10.4/share/mk/sys.mk 2020-04-06 13:53:38.746264000 +0800
@@ -52,11 +52,11 @@
.if defined(%POSIX)
CC ?= c89
-CFLAGS ?= -O
+CFLAGS ?= -O1
.else
CC ?= cc
-.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
-CFLAGS ?= -O -pipe
+.if ${MACHINE_CPUARCH} == "mips"
+CFLAGS ?= -O1 -pipe
.else
CFLAGS ?= -O2 -pipe
.endif