Clang cross-compiler for ELF under OS X
Posted: Thu Mar 03, 2011 8:54 pm
I've been trying to get a cross compiler set up under OS X, but can't seem to get it right. I have i586-elf-binutils, nasm, and qemu installed properly, but clang simply refuses to accept the target configuration I give it. I configure the latest trunk build with "--target=i586-elf", and it seems to work (configure reports that build and host are x86_64-apple-darwin and target is i586-elf) but once it compiles the resulting executable reports its target as x86_64-apple-darwin and produces only Mach-O executables. Any idea of what I'm doing wrong?