Subject: Re: libpthread and static constructor order
To: None <tech-userlevel@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-userlevel
Date: 11/02/2007 11:25:11
On Thu, Nov 01, 2007 at 08:53:53PM -0700, J.T. Conklin wrote:
> I'm running into this problem now with ACE / TAO, which has static
> ctors which end up using pthread's thread specific storage.

In that case the library has to explicitly link against libpthread. ELF
constructors are run in dependency order and if you can build the
library with -z defs, you should be on the save side.

Joerg