Is it possible to compile a c file into an elf on OS X using llvm-gcc? If so, how? I’ve only been able to get mach-o output.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
clangwill take options like-ccc-host-triple i686-pc-linux-gnu, but on OS X it will obviously fail in the link step.You could just run a Linux VM in OS X (VirtualBox is free VM host application) and build the ELF natively.