Init defaults $objtype to $cputype.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-04-14 15:31:55 +02:00
parent 8f3fd73bd6
commit 66b8d23713
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <error.h>
@ -70,6 +71,10 @@ int main(int argc, char* argv[])
printf("\r\e[m\e[J");
fflush(stdout);
// By default, compile to the same architecture that the kernel told us that
// we are running.
setenv("objtype", getenv("cputype"), 0);
return runsystem();
}