[LLVMdev] Is the option --enable-shared discontinued in 2.7?

Yuri yuri at tsoft.com
Wed May 5 13:58:33 PDT 2010


Jeffrey Yasskin wrote:
> That's odd. On Linux, g++ adds -lc to the end of the link line itself.
> It must be adding -lstdc++ for you too, or you'd have more missing
> symbols. If you run that command with "-v", it'll show you the actual
> link line, but given your errors it does seem like -lc is missing. I
> don't think it'll hurt anyone else to add that, so I'll try it.
>   

That looks odd to me too, but somehow this happens. I used the patch to 
fix this, see attachment.

> I assume builds without --enable-shared do work for you? If so, I
> wonder why g++ would omit -lc for shared links but not executable
> links?
>   


Yes, without --enable-shared everything is fine.

Yuri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm-patch-so.diff
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100505/9fd9c3fc/attachment.ksh>


More information about the llvm-dev mailing list