On Sun, Mar 30, 2008 at 10:26 AM, Török Edwin <<a href="mailto:edwintorok@gmail.com" target="_blank">edwintorok@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If this tool could be a drop-in wrapper for CC/CXX, it would be<br>
excellent, since nearly every autotooled package could be tested this way.</blockquote><div><br>How exactly do can LLVM be used with autotooled packages (with -emit-llvm)? I've tried setting CC, CXX, CFLAGS, CXXFLAGS. I usually can't get past "./configure" because it tries to compile test programs to make sure gcc works. Adding the "-c" option allows it to compile but it outputs as filename.o instead of a.out as the script expects. Without the "-c" option I get ld errors:<br>
ld: Unknown command line argument '-m'. Try: '/home/ssoria/llvm/gcc/ld --help'<br>ld: Unknown command line argument '-dynamic-linker'. Try: '/home/ssoria/llvm/gcc/ld --help'<br>ld: Unknown command line argument '-emit-llvm'. Try: '/home/ssoria/llvm/gcc/ld --help'<br>
collect2: ld returned 1 exit status<br><br></div></div>