Jeff Squyres, le Thu 04 Aug 2011 17:18:11 +0200, a écrit :
> On Aug 4, 2011, at 11:13 AM, Samuel Thibault wrote:
>
> >> Where do we use the pthread functions -- in the libhwloc core, or just in the utils?
> >
> > In the core, but only if they are linked-in, through weak references.
>
> But if building statically (libhwloc.a), they'll need to be resolved -- right?
Only if the application uses -lpthread. Else the weak reference becomes
NULL, which we check for.
> I.e., is there harm in (effectively) adding -lpthread?
Generally slower glibc.
Samuel
|