<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 12, 2009, at 8:30 AMPDT, Misha Brukman wrote:</div><blockquote type="cite"><div class="gmail_quote"><div><br>../../../../src/llvm-gcc4.2-2.5.source/gcc/config/arm/<a href="http://arm.md:4788">arm.md:4788</a>: error: ‘MACHO_DYNAMIC_NO_PIC_P’ undeclared here (not in a function)<br><br>This tells me there are some Darwin-specific bits in <a href="http://arm.md">arm.md</a> which shouldn't be there (MachO is Mac OS X-specific).  I'm using the attached script llvm-arm-crosstool.sh to configure/build/install LLVM and LLVM-GCC from the 2.5 release.  If anyone wants to try it out and see if it works for them, I'd love to hear their experiences.<br> <br>If any ARM/GCC experts know how to fix <a href="http://arm.md">arm.md</a> to not refer to Darwin-specific macros, that would be great, too.</div></div></blockquote><br></div><div>Probably the right general idea is to #define MACHO_DYNAMIC_NO_PIC_P to be 0 for non-Darwin targets.  Not sure where to put this so it will work for both targets (the Darwin definition comes from config/darwin.h).</div><div><br></div></body></html>