summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-07-27 15:33:43 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-07-27 15:33:43 +0000
commit26b54fb5e2fb41b7fd6ec3b47037988a166b6f61 (patch)
tree24c8e8164562b8b1178a7b747f0e99547cf71f84
parent4cb9002fb8e43d355030f47480bf7e1bea2e0459 (diff)
insist on -Oz in the *.mk file
(note it's *after* the normal flags, so it will pre-empt a -O2) okay deraadt@
-rw-r--r--usr.sbin/crunchgen/crunchgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/crunchgen/crunchgen.c b/usr.sbin/crunchgen/crunchgen.c
index 4fde448f718..c86ee922b2e 100644
--- a/usr.sbin/crunchgen/crunchgen.c
+++ b/usr.sbin/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.18 2017/07/27 15:12:30 deraadt Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.19 2017/07/27 15:33:42 espie Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -876,6 +876,7 @@ top_makefile_rules(FILE * outmk)
fprintf(outmk, ".include <bsd.own.mk>\n");
fprintf(outmk, "CFLAGS+=$(NOPIE_FLAGS)\n");
+ fprintf(outmk, "CFLAGS+=-Oz\n");
fprintf(outmk, "LDFLAGS+=$(NOPIE_LDFLAGS)\n");
fprintf(outmk, "STRIP?=strip\n");
fprintf(outmk, "LINK=$(LD) -dc -r ${LDFLAGS}\n");