diff options
author | 2010-05-24 20:02:08 +0000 | |
---|---|---|
committer | 2010-05-24 20:02:08 +0000 | |
commit | 694507e1b70e7cfa009f5ccbef6fc89e1053188f (patch) | |
tree | f71e4d0c9e145bebeb07404d42e3846a3b743f1c | |
parent | use the same idiom for stripping gdb kernels. This relies on strip -o (diff) | |
download | wireguard-openbsd-694507e1b70e7cfa009f5ccbef6fc89e1053188f.tar.xz wireguard-openbsd-694507e1b70e7cfa009f5ccbef6fc89e1053188f.zip |
automatically generate the _arch= and _mach= lines at the top of the kernel
Makefile, since we already know them. (Later on, we can remove the chunks
from the Makefile.* files...)
ok kettenis
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 7c51d4c78c8..d59814727b6 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkmakefile.c,v 1.32 2009/10/19 19:46:57 guenther Exp $ */ +/* $OpenBSD: mkmakefile.c,v 1.33 2010/05/24 20:02:08 deraadt Exp $ */ /* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */ /* @@ -262,6 +262,10 @@ emitdefs(FILE *fp) return (1); if (fprintf(fp, "S=\t%s\n", srcdir) < 0) return (1); + if (fprintf(fp, "_mach=%s\n", machine) < 0) + return (1); + if (fprintf(fp, "_arch=%s\n", machinearch ? machinearch : machine) < 0) + return (1); for (nv = mkoptions; nv != NULL; nv = nv->nv_next) if (fprintf(fp, "%s=%s\n", nv->nv_name, nv->nv_str) < 0) return (1); |