summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:12:48 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:12:48 +0000
commit9e13e109aa5166fac25ad417e38996ce27251c67 (patch)
treee5c8da349259c9e1fa469b3b67b5d685e2ef8f8f
parent537008edcb10327b24daf83ca3a60fded0e9f14a (diff)
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=");