summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunchgen
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-10-14 07:06:25 +0000
committerguenther <guenther@openbsd.org>2013-10-14 07:06:25 +0000
commit0ddee584f6e70345c4d6ba926a7d715af8effa9e (patch)
tree741e0d1807c051cd2c9a269b76203ca10b254cff /usr.sbin/crunchgen
parenthandle DESTDIR; with guenther (diff)
downloadwireguard-openbsd-0ddee584f6e70345c4d6ba926a7d715af8effa9e.tar.xz
wireguard-openbsd-0ddee584f6e70345c4d6ba926a7d715af8effa9e.zip
Using 'cc -o /dev/null' has weird side-effects as root, so use a real file
problem noted by deraadt@
Diffstat (limited to 'usr.sbin/crunchgen')
-rw-r--r--usr.sbin/crunchgen/crunchgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/crunchgen/crunchgen.c b/usr.sbin/crunchgen/crunchgen.c
index 723177c9286..c1e88f8dc5d 100644
--- a/usr.sbin/crunchgen/crunchgen.c
+++ b/usr.sbin/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.10 2013/10/14 06:59:11 deraadt Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.11 2013/10/14 07:06:25 guenther Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -932,7 +932,7 @@ top_makefile_rules(FILE * outmk)
fprintf(outmk, "\t DIST_LIB=${.OBJDIR}/${.TARGET} ${.OBJDIR}/${.TARGET}\n\n");
fprintf(outmk, "%s.map: %s.o $(CRUNCHED_OBJS)\n", execfname, execfname);
- fprintf(outmk, "\t$(CC) -static ${LDFLAGS} -o /dev/null %s.o $(CRUNCHED_OBJS) \\\n", execfname);
+ fprintf(outmk, "\t$(CC) -static ${LDFLAGS} -o %s.o.o %s.o $(CRUNCHED_OBJS) \\\n", execfname, execfname);
fprintf(outmk, "\t $(LIBS) -Wl,-M | sed -e '/^Allocating/q' >${.TARGET}\n\n");
fprintf(outmk, "${CLIB:.a=.olist}: %s.map\n", execfname);