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

Henrik Bach
Thu, 07 Jul 2005 19:26:32 -0000

>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!