summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2017-07-25 13:32:15 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2017-07-25 13:32:15 +0000
commit8649e94e762e89c9b935d8d42b2371ebb2012bdf (patch)
tree60c6ab496824183563ac495e3107423340fcd95b /distrib/alpha
parent5a56edb633ad3fcab435ac1c5889398ccefeb9ff (diff)
change -Os to -Oz all around the tree
clang optimizes better for size with -Oz so use that as a default to avoid overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os. ok kettenis@
Diffstat (limited to 'distrib/alpha')
-rw-r--r--distrib/alpha/bsd.rd/Makefile4
-rw-r--r--distrib/alpha/common/Makefile.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/distrib/alpha/bsd.rd/Makefile b/distrib/alpha/bsd.rd/Makefile
index 241185ba092..23ebb201b6d 100644
--- a/distrib/alpha/bsd.rd/Makefile
+++ b/distrib/alpha/bsd.rd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.24 2017/06/03 22:25:19 deraadt Exp $
+# $OpenBSD: Makefile,v 1.25 2017/07/25 13:32:14 robert Exp $
TOP= ${.CURDIR}/..
@@ -31,7 +31,7 @@ bsd.rd_unz: bsd ${IMAGE} rdsetroot
bsd:
cd ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK} && \
- su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
+ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Oz ${MAKE}'
cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/obj/bsd bsd
${IMAGE}: ${CBIN}
diff --git a/distrib/alpha/common/Makefile.inc b/distrib/alpha/common/Makefile.inc
index 2433e4fb146..f92e3250cbc 100644
--- a/distrib/alpha/common/Makefile.inc
+++ b/distrib/alpha/common/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.29 2017/01/27 17:59:09 natano Exp $
+# $OpenBSD: Makefile.inc,v 1.30 2017/07/25 13:32:14 robert Exp $
TOP= ${.CURDIR}/..
@@ -73,7 +73,7 @@ bsd.rd: bsd ${IMAGE} rdsetroot
bsd:
cd ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK} && \
- su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
+ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Oz ${MAKE}'
cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/obj/bsd bsd
${IMAGE}: ${CBIN}