From owner-freebsd-hackers Wed Mar 19 15:44:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA01983 for hackers-outgoing; Wed, 19 Mar 1997 15:44:21 -0800 (PST) Received: from werple.net.au (melb.werple.net.au [203.9.190.18]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA01976 for ; Wed, 19 Mar 1997 15:44:16 -0800 (PST) Received: (qmail 1896 invoked by uid 5); 19 Mar 1997 23:44:07 -0000 Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id KAA08218; Thu, 20 Mar 1997 10:43:46 +1100 (EST) From: John Birrell Message-Id: <199703192343.KAA08218@freebsd1.cimlogic.com.au> Subject: Re: FW: threads... To: staff@kyklopen.ping.dk (Thomas Sparrevohn) Date: Thu, 20 Mar 1997 10:43:45 +1100 (EST) Cc: jb@cimlogic.com.au, Shimon@i-Connect.Net, freebsd-hackers@freebsd.org In-Reply-To: from Thomas Sparrevohn at "Mar 19, 97 11:42:57 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Thomas Sparrevohn wrote: > Sorry but could'nt we just append a flag to gcc, say -pthread and let > gcc handle the library shift etc. Its actually quite easy. I have asked if that would be OK and I think I got the go-ahead -- nobody objected. This patch to src/contrib/gcc/config/i386/freebsd.h should do the trick: 90c90 < #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" --- > #define LIB_SPEC "%{!p:%{!pg:%{!pthread:-lc}%{pthread:-lc_r}}}%{p:%{!pthread:-lc_p}%{pthread:-lc_r_p}}%{pg:%{!pthread:-lc_p}%{pthread:-lc_r_p}}" I've been holding this until I got a few other patches before it would be worth bothering someone to commit it (since I can't 8-(). > > -- Thomas Regards -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org CIMlogic Pty Ltd, 119 Cecil Street, South Melbourne Vic 3205, Australia Tel +61 3 9690 6900 Fax +61 3 9690 6650 Mob +61 418 353 137