summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpascal <pascal@openbsd.org>2012-08-22 17:12:47 +0000
committerpascal <pascal@openbsd.org>2012-08-22 17:12:47 +0000
commit521359263107b65c314a368f79b55a8dd85a253d (patch)
treed03a224dbb3073a9b8ac1a58f2ddf2e13fe31f0a
parentLink ld.so-cookie back into the regress build now that ld.so's __guard (diff)
downloadwireguard-openbsd-521359263107b65c314a368f79b55a8dd85a253d.tar.xz
wireguard-openbsd-521359263107b65c314a368f79b55a8dd85a253d.zip
Build crunched binaries with -fno-pie.
ok deraadt@
-rw-r--r--usr.sbin/crunchgen/crunchgen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/crunchgen/crunchgen.c b/usr.sbin/crunchgen/crunchgen.c
index 61e7dc0a1f7..ee9d699349c 100644
--- a/usr.sbin/crunchgen/crunchgen.c
+++ b/usr.sbin/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.6 2009/12/04 04:59:48 drahn Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.7 2012/08/22 17:12:47 pascal Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -887,6 +887,8 @@ top_makefile_rules(FILE * outmk)
strlst_t *l;
+ fprintf(outmk, ".include <bsd.own.mk>\n");
+ fprintf(outmk, "CFLAGS+=$(NOPIE_FLAGS)\n");
fprintf(outmk, "STRIP?=strip\n");
fprintf(outmk, "LINK=$(LD) -dc -r\n");
fprintf(outmk, "LIBS=");