summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-07-27 15:33:42 +0000
committerespie <espie@openbsd.org>2017-07-27 15:33:42 +0000
commita560fb78ae3cf6cdf2ea5cc9a93bedc885f59c59 (patch)
tree48351b79d3e80b6e6ee7f33f4b11d09a676e22d9
parentMute clang's zeal for whining by providing prototypes. (diff)
downloadwireguard-openbsd-a560fb78ae3cf6cdf2ea5cc9a93bedc885f59c59.tar.xz
wireguard-openbsd-a560fb78ae3cf6cdf2ea5cc9a93bedc885f59c59.zip
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");