[LLVMdev] External function 'pthread_once' could not be resolved

Henrik Bach henrik_bach_llvm at hotmail.com
Thu Jul 7 12:26:32 PDT 2005


>From: Chris Lattner
>Date: Thu, 7 Jul 2005 11:26:48 -0500 (CDT)
>
>On Thu, 7 Jul 2005, Henrik Bach wrote:
>>The 'pthread_once' is located in the native library binary file: 
>>/usr/lib/libpthread.a. I've also included the path to the library in 
>>LLVM_LIB_SEARCH_PATH environment variable.
>
>If libpthread.a is a static library, lli won't be successful loading it. 
>Try relinking lli, but add this to its tools/lli/Makefile:
>
>TOOLLINKOPTS := -lpthread

There is both a static (.a) and dynamic (.so) version of  the library. The 
above advise worked for the static library. However, I think it is more 
convenient to use the dynamic version. How do I achieve that?

Henrik.

>
>-Chris
>
>--
>http://nondot.org/sabre/
>http://llvm.cs.uiuc.edu/
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_________________________________________________________________
Undgå pop-ups med MSN Toolbar -  http://toolbar.msn.dk/ hent den gratis!




More information about the llvm-dev mailing list