Init defaults $objtype to $cputype.
This commit is contained in:
parent
8f3fd73bd6
commit
66b8d23713
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue