1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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();
}