DragonFly BSD
DragonFly users List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: POSIX threads on DFly


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sat, 26 Feb 2005 14:58:17 +0100
Mail-followup-to: users@crater.dragonflybsd.org

On Fri, Feb 25, 2005 at 12:09:11PM -0800, Matthew Dillon wrote:
>     In fact, that reminds me... Joerg, I would like to support a CCTHREAD
>     environment variable to specify the default threading library, similar to
>     how our CCVER environment variable works, and hook -pthread into it.
>     Do you have time to work that into the compiler ?  That's why I asked
>     David to call his library libthread_xu instead of libthread... I want us
>     to be able to choose between multiple thread libraries as easily as we
>     choose between multiple compilers.

I wanted to support two things: choosing the global default library
and compiling individual stuff against a specific library.

For the former, I'll add a libpthread stub library (libpthread.so)
which is linked against libc_r. This is necessary to get the right
soname into the binaries. Afterwards, a simple link can be used to
switch thread libraries for programs linked with -lpthread.

The next big part is verifying that libc_r can be made a "normal"
library, which can be linked after libc. That should be pretty easy
to do now.

The third part is integrating some more linker magic (not libmap, but
I'm working on some infrastructure which would allow us to the same and
more).

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]