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

Chris Lattner
Thu, 07 Jul 2005 16:26:48 -0000

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

-Chris

--