[LLVMdev] Re: question about gccld and external libraries

Chris Lattner sabre at nondot.org
Tue Mar 1 09:59:03 PST 2005

On Tue, 1 Mar 2005, Jakob Praher wrote:
>> If you pass '-lrt' when linking your program, it should take care of this 
>> for you.
> ah ok. so every library thet gccld can't find as a bytecode lib is added to 
> the shell script then.

Yup.  Note there are other options if you don't want to run your program 
in the JIT.  In particular, you can use these commands:

llvm-gcc x.c -Wl,-native  -lrt -l...
llvm-gcc x.c -Wl,-native-cbe ...

To produce native executables that do not need the JIT.  The first option 
uses the native LLVM code generator, the second uses the C backend and a 
system C compiler.



More information about the llvm-dev mailing list