Re: Fixing -pthreads (Re: ports and -current)

From: Daniel Eischen <eischen_at_vigrid.com>
Date: Tue, 23 Sep 2003 17:01:07 -0400 (EDT)
On Tue, 23 Sep 2003, Andrea Campi wrote:

> [cc trimmed]
> 
> Hi Daniel,
> 
> On Tue, Sep 23, 2003 at 04:13:11PM -0400, Daniel Eischen wrote:
> > > However, I'd
> > > also suggest making it easy for people to set '-pthread' to give whatever
> > > pthreads library they think is the most sensible default for their
> > > installation.
> > 
> > You can't make it variable.
> 
> I followed the whole thread and probably I'm being dense, but I still can't
> get this point. Note that I'm not taking position one way or the other, just
> asking.
> 
> Why is that so? Isn't it possible to have -pthread:
> 
>  - do nothing when linking libraries

This could and should be done.

>  - use libmap.conf(5) (possibly integrated by whatever env magic we want to
> add to allow this to be temporarily overridden) to decide what to link with.

No, you can't do that.  You're welcome to try.

-- 
Dan Eischen
Received on Tue Sep 23 2003 - 12:01:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:23 UTC