Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 02:12:31 +0000 (GMT)
From:      "Carlos A. M. dos Santos" <casantos@cpmet.ufpel.tche.br>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: HEADS UP: -pthread is going to break under -current soon
Message-ID:  <Pine.BSF.4.21.0101230201250.6826-100000@gate.cpmet.ufpel.tche.br>
In-Reply-To: <3A6CA399.7F8B801E@vigrid.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Jan 2001, Daniel Eischen wrote:

> In a couple of days, I'll be committing changes to libc and libc_r
> to allow them to be linked together via -lc_r.  libc_r will only
> contain the thread functions and will not contain any libc functions
> as it does currently.

At last! This was something I was waiting for since I started to tweak
with threaded X applications in FreeBSD.

>  We currently use -pthread as a non-standard hack to link to libc_r
> and to prevent linking to libc.  After I commit these changes, using
> -pthread will not work; it will produce an executable that is only
> linked to libc_r but which also needs to be linked to libc.  This also
> means that all (shared) threaded apps will need to be recompiled under
> -current.

Please add weak stubs of pthread_*() in libc.so and use the name
libpthread instead of libc_r (that is the name that everyone, e.g.
autoconf, looks for) as made in Solaris (and OpenBSD, I believe). This is
the reasonable thing to do and will finally end with the messy libXThrStub
that is used currently to enable threads support in X.

  
--
Carlos A. M. dos Santos

Federal University of Pelotas         Meteorological Research Center
Av. Ildefonso Simoes Lopes 2791       Pelotas, RS, Brasil, CEP 96060-290
WWW: http://www.cpmet.ufpel.tche.br   RENPAC (X.25): 153231641
Phone: +55 53 277-6767                FAX: +55 53 277-6722



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101230201250.6826-100000>