On Dec 13, 2012, at 3:10 PM, Mark Cave-Ayland wrote:
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?
LLVM is part of CLANG. CLANG is another compiler that is different from gcc. To use CLANG, you have to specify it. GCC is still available on Mac OS X. This page should make things a little more clear to you.
http://lists.openbios.org/pipermail/openbios/2011-August/006642.html