Date: Thu, 6 Feb 1997 09:32:28 +1100 (EST) From: John Birrell <jb@cimlogic.com.au> To: current@freebsd.org Subject: Proposed change to gcc LIB_SPEC Message-ID: <199702052232.JAA03421@freebsd1.cimlogic.com.au>
next in thread | raw e-mail | index | archive | help
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*} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702052232.JAA03421>