From owner-freebsd-ports Wed Jan 24 9:37: 6 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 6419C37B698; Wed, 24 Jan 2001 09:36:46 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id MAA07481; Wed, 24 Jan 2001 12:36:17 -0500 (EST) Date: Wed, 24 Jan 2001 12:36:17 -0500 (EST) From: Daniel Eischen To: Alfred Perlstein Cc: "Daniel M. Eischen" , current@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps In-Reply-To: <20010124084058.S26076@fw.wintelcom.net> 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 Wed, 24 Jan 2001, Alfred Perlstein wrote: > * Daniel M. Eischen [010124 05:26] wrote: > > As discussed a few days ago, I've just committed the changes to libc > > and libc_r to allow them to be linked together via -lc_r. If you're > > running -current and have any threaded apps built using libc_r.so.5, > > you'll need to rebuild them without the -pthread option using -lc_r. > > > > For porters, the __FreeBSD_version has been bumped to 500016 to > > reflect the above change. > > This is ambiguous, can you provide old/new examples of how to > compile/link a single C source file? What's not clear ;-) Use -lc_r instead of -pthread. gcc -Wall -o foo foo.c -lc_r The old way was: gcc -Wall -D_THREAD_SAFE -o foo foo.c -pthread Obviously -Wall isn't necessary, but it should be mandatory :-) -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message