diff options
author | jb <jb@FreeBSD.org> | 1997-05-03 02:58:54 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1997-05-03 02:58:54 +0000 |
commit | 8063125723bbc9af61ddfefc3de495d2f827e118 (patch) | |
tree | 83da77f74001481c3d69b31e52fd17918eccac4e /contrib/gcc/config | |
parent | 87e6f01d064f9909ce0c70372a61f1bbb613e56d (diff) | |
download | FreeBSD-src-8063125723bbc9af61ddfefc3de495d2f827e118.zip FreeBSD-src-8063125723bbc9af61ddfefc3de495d2f827e118.tar.gz |
Let gcc know about libc_r. Use -pthread to link against libc_r instead
of libc.
Diffstat (limited to 'contrib/gcc/config')
-rw-r--r-- | contrib/gcc/config/i386/freebsd.h | 2 | ||||
-rw-r--r-- | contrib/gcc/config/i386/freebsd.h.fixed | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h index a96eb63..d27ef63 100644 --- a/contrib/gcc/config/i386/freebsd.h +++ b/contrib/gcc/config/i386/freebsd.h @@ -87,7 +87,7 @@ Boston, MA 02111-1307, USA. */ #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}" /* Like the default, except no -lg, and no -p. */ -#define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}" +#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:-lc}%{pthread:-lc_r}}%{pg:%{!pthread:-lc_p}%{pthread:-lc_r_p}}}" #define LINK_SPEC \ "%{p:%e`-p' not supported; use `-pg' and gprof(1)} \ diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed index a96eb63..d27ef63 100644 --- a/contrib/gcc/config/i386/freebsd.h.fixed +++ b/contrib/gcc/config/i386/freebsd.h.fixed @@ -87,7 +87,7 @@ Boston, MA 02111-1307, USA. */ #define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}" /* Like the default, except no -lg, and no -p. */ -#define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}" +#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:-lc}%{pthread:-lc_r}}%{pg:%{!pthread:-lc_p}%{pthread:-lc_r_p}}}" #define LINK_SPEC \ "%{p:%e`-p' not supported; use `-pg' and gprof(1)} \ |