summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-07-12 21:49:27 +0000
committermiod <miod@openbsd.org>2014-07-12 21:49:27 +0000
commitc0d3cd1c43fade87fb741bb68896886088888cac (patch)
tree788eb08c0314852ba20a28c3b46e19c58ac60493
parentFix the last commit by proper dereferencing the disklabel partition. (diff)
downloadwireguard-openbsd-c0d3cd1c43fade87fb741bb68896886088888cac.tar.xz
wireguard-openbsd-c0d3cd1c43fade87fb741bb68896886088888cac.zip
Build kernels at -O2 instead of -Os, as done for userland and on all other
architectures. ok deraadt@
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa4
-rw-r--r--sys/arch/hppa64/conf/Makefile.hppa644
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index 594b9b3c42e..3bb547a8c10 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.75 2014/05/08 21:32:45 miod Exp $
+# $OpenBSD: Makefile.hppa,v 1.76 2014/07/12 21:49:27 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -33,7 +33,7 @@ CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
-fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
CMACHFLAGS+= -fno-stack-protector
-COPTS?= -Os
+COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \
diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64
index 52e0f02b57e..5aca8aacbc5 100644
--- a/sys/arch/hppa64/conf/Makefile.hppa64
+++ b/sys/arch/hppa64/conf/Makefile.hppa64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa64,v 1.46 2013/10/15 19:23:27 guenther Exp $
+# $OpenBSD: Makefile.hppa64,v 1.47 2014/07/12 21:49:27 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -33,7 +33,7 @@ CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
-fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
CMACHFLAGS+= -fno-stack-protector
-COPTS?= -Os
+COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \