From owner-freebsd-questions Sat Apr 24 14: 6:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id D112F15559 for ; Sat, 24 Apr 1999 14:05:49 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id QAA15673; Sat, 24 Apr 1999 16:23:04 -0500 (EST) Date: Sat, 24 Apr 1999 16:23:02 -0500 (EST) From: Alfred Perlstein To: kip@lyris.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD linking against libc_r instead of libc In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 24 Apr 1999 kip@lyris.com wrote: > On Sat, 24 Apr 1999, Alfred Perlstein wrote: > > > On Sat, 24 Apr 1999 kip@lyris.com wrote: > > > > > > > > > > > How do I configure egcs on FreeBSD so that it not only recognizes the > > > -pthread flag but also interprets it as linking against libc_r as opposed > > > to libc? Any help would be much appreciated. > > > Thanks. > > > > i think -pthread implies linkage against libc_r. > > This is true -- however the default configuration of egcs on FreeBSD > creates a g++ binary which does not recognize the -pthread flag, and > neither the egcs package's eg++ nor the pgcc port's eg++ recognize it. > > > prompt> eg++ -pthread myfile.cpp > eg++: unrecognized option `-pthread' I don't have egcs from the port available, but what you might want to try is combinations of -nostdlib and -lc_r until someone comes up with a real answer. Sorry i didn't see the 'egcs' in your question. -Alfred > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message