The only reliable solution is to check for the CPU very early in
assembler, when no C code has been called yet.
I see two solutions -- either to rewrite it in asm (I think I even have some code like this for my demo os ;-) or to compile mintlib/main.c always with -m68000.