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