Date: Thu, 20 Mar 1997 10:43:45 +1100 (EST) From: John Birrell <jb@cimlogic.com.au> To: staff@kyklopen.ping.dk (Thomas Sparrevohn) Cc: jb@cimlogic.com.au, Shimon@i-Connect.Net, freebsd-hackers@freebsd.org Subject: Re: FW: threads... Message-ID: <199703192343.KAA08218@freebsd1.cimlogic.com.au> In-Reply-To: <Pine.BSF.3.91.970319234016.1399B-100000@kyklopen> from Thomas Sparrevohn at "Mar 19, 97 11:42:57 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703192343.KAA08218>