From 66b8d237132e3319e3c16b3bf0392d90b7bc0b51 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 14 Apr 2012 15:31:55 +0200 Subject: [PATCH] Init defaults $objtype to $cputype. --- utils/init.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/init.cpp b/utils/init.cpp index f317e108..4b7df9cc 100644 --- a/utils/init.cpp +++ b/utils/init.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -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(); }