On 12/12/12 16:53, Programmingkid wrote:
This patch fixes the problem of not correctly configuring for Mac OS X.
On Mac OS X, the compiler is simply called gcc, so the names the switch-arch script would look for were not available. Also uname -m returns i386 on Mac OS X. This value doesn't change on 32bit or 64bit intel processors. On Linux, the value would be x86_64 for 64bit processors and i686 for 32bit processors. The 6 in 686 might be 3,4, or 5 depending on your processor type.
With this patch I was actually able to go pretty far in the building process of making OpenBIOS. I stopped at an issue in elf_info.c. This is another issue to be solved for another time.
signed-off-by: John Arbuckleprogrammingkidx@gmail.com
Hmmm. OS X uses LLVM instead of gcc, doesn't it? I'm not sure I know enough about LLVM cross-compile environments in order to know if this is the right thing to do or not. Any web references you can point me at, or are there any other compiler-savvy OS X users on the mailing list?
ATB,
Mark.