From owner-freebsd-current Wed Feb 5 14:39:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18288 for current-outgoing; Wed, 5 Feb 1997 14:39:10 -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 OAA18273 for ; Wed, 5 Feb 1997 14:39:07 -0800 (PST) Received: (qmail 21691 invoked by uid 5); 5 Feb 1997 22:39:01 -0000 MBOX-Line: From jb@freebsd1.cimlogic.com.au Thu Feb 6 09:32:29 1997 Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id JAA03421 for current@freebsd.org; Thu, 6 Feb 1997 09:32:29 +1100 (EST) From: John Birrell Message-Id: <199702052232.JAA03421@freebsd1.cimlogic.com.au> Subject: Proposed change to gcc LIB_SPEC To: current@freebsd.org Date: Thu, 6 Feb 1997 09:32:28 +1100 (EST) 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-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk G'day, I'd like to change FreeBSD's gcc LIB_SPEC so that "gcc -pthread" will link an application against libc_r instead of libc. A diff is attached. Any objections? Regards, -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au; jb@netbsd.org 119 Cecil Street Ph +61 3 9690 6900 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137 *** /u/freebsd/src/contrib/gcc/config/i386/freebsd.h Tue Oct 1 12:20:27 1996 --- ./contrib/gcc/config/i386/freebsd.h Fri Dec 27 08:02:00 1996 *************** *** 87,93 **** #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}" /* Like the default, except no -lg. */ ! #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" #define LINK_SPEC \ "%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \ --- 87,93 ---- #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}" /* Like the default, except no -lg. */ ! #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}}" #define LINK_SPEC \ "%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \