From owner-freebsd-ports Mon Jan 22 18:13:52 2001 Delivered-To: freebsd-ports@freebsd.org Received: from gate.cpmet.ufpel.tche.br (gate.cpmet.ufpel.tche.br [200.248.148.33]) by hub.freebsd.org (Postfix) with ESMTP id 0A7CA37B401 for ; Mon, 22 Jan 2001 18:13:31 -0800 (PST) Received: from localhost (casantos@localhost) by gate.cpmet.ufpel.tche.br (8.11.1/8.11.1) with ESMTP id f0N2CVb07141; Tue, 23 Jan 2001 02:12:31 GMT (envelope-from casantos@cpmet.ufpel.tche.br) Date: Tue, 23 Jan 2001 02:12:31 +0000 (GMT) From: "Carlos A. M. dos Santos" To: Daniel Eischen Cc: ports@FreeBSD.ORG Subject: Re: HEADS UP: -pthread is going to break under -current soon In-Reply-To: <3A6CA399.7F8B801E@vigrid.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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