[LLVMdev] Q: missing -fPIC in llvmc?

Chris Lattner sabre at nondot.org
Mon Oct 22 13:40:00 PDT 2007


On Mon, 22 Oct 2007, Basile STARYNKEVITCH wrote:
>> You're missing the fact that llvmc is highly experimental, and is not
>> really usable yet.  Please use llvm-gcc directly, thanks!
>
> Yes, but I want to compile LLVM assembly language (to PIC shared object
> file on AMD64/Linux/Debian), not C.
>
> Is llvm-gcc still needed in that case?

In that case, you should use low-level tools like llc directly.  llc takes 
a -relocation-model=pic option.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list