summaryrefslogtreecommitdiff
path: root/distrib/crunch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 21:43:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 21:43:55 +0000
commit6e4a3c38dc9e54ea6dbdea168e1737fb60dca7e0 (patch)
tree9ba47437a8a9386e8a450e0fdf6a0053c4331f7f /distrib/crunch
parentf66e691f9fd13033727195f6865dec32501a22ef (diff)
link instbin w/ scrt0, saves a couple of k's
Diffstat (limited to 'distrib/crunch')
-rw-r--r--distrib/crunch/crunchgen/crunchgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/crunch/crunchgen/crunchgen.c b/distrib/crunch/crunchgen/crunchgen.c
index d3c5ccffaf4..2a89b9b024a 100644
--- a/distrib/crunch/crunchgen/crunchgen.c
+++ b/distrib/crunch/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.15 1999/12/06 01:47:58 deraadt Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.16 2000/06/23 21:43:54 mickey Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -822,8 +822,8 @@ void top_makefile_rules(FILE *outmk)
fprintf(outmk, "%s: %s.o $(CRUNCHED_OBJS)\n",
execfname, execfname);
- fprintf(outmk, "\t$(CC) -static -o %s %s.o $(CRUNCHED_OBJS) $(LIBS)\n",
- execfname, execfname);
+ fprintf(outmk, "\t$(CC) -static -nostdlib -o %s %s.o %s/scrt0.o $(CRUNCHED_OBJS) $(LIBS) -lgcc -lc -lgcc\n",
+ execfname, execfname, libdir);
fprintf(outmk, "\t$(STRIP) %s\n", execfname);
fprintf(outmk, "all: objs exe\nobjs: $(SUBMAKE_TARGETS)\n");
fprintf(outmk, "exe: %s\n", execfname);