diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 89dc5f66b87a..b672482bade1 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -18,6 +18,8 @@ SIZE?= size .if ${CC} == "icc" COPTFLAGS?=-O +.elif ${MACHINE_ARCH} == "amd64" +COPTFLAGS?=-O2 -fno-strict-aliasing -frename-registers -pipe .else COPTFLAGS?=-O -pipe . if ${COPTFLAGS:M-O[23s]} != ""