From owner-freebsd-ports Mon Jan 22 13:13:55 2001 Delivered-To: freebsd-ports@freebsd.org Received: from net2.gendyn.com (nat2.gendyn.com [204.60.171.12]) by hub.freebsd.org (Postfix) with ESMTP id B857737B400 for ; Mon, 22 Jan 2001 13:13:29 -0800 (PST) Received: from [153.11.109.12] (helo=fatboy.clc.gdeb.com) by net2.gendyn.com with esmtp (Exim 2.12 #1) id 14KoH8-0005Ra-00 for ports@freebsd.org; Mon, 22 Jan 2001 16:13:18 -0500 Received: from vigrid.com (localhost [127.0.0.1]) by fatboy.clc.gdeb.com (8.11.0/8.9.3) with ESMTP id f0MLIHO69715; Mon, 22 Jan 2001 16:18:18 -0500 (EST) (envelope-from eischen@vigrid.com) Message-ID: <3A6CA399.7F8B801E@vigrid.com> Date: Mon, 22 Jan 2001 16:18:17 -0500 From: Daniel Eischen X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: ports@freebsd.org Subject: HEADS UP: -pthread is going to break under -current soon Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. 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. I'll bump OSVERSION after I make this change. All ports that use FreeBSD native threads will have to link with -lc_r under -current. Perhaps a knob in bsd.port.mk, THREADS_LIB or something, could be added and automatically set depending on OSVERSION. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message