diff options
Diffstat (limited to 'contrib/gcc/config/freebsd.h')
-rw-r--r-- | contrib/gcc/config/freebsd.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h index 3cf3bad..2e52b9f 100644 --- a/contrib/gcc/config/freebsd.h +++ b/contrib/gcc/config/freebsd.h @@ -71,17 +71,14 @@ Boston, MA 02111-1307, USA. */ #define CPP_SPEC FBSD_CPP_SPEC /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate - libc, depending on whether we're doing profiling. + libc, depending on whether we're doing profiling. Add the appropriate + libc_r if supporting threads. (like the default, except no -lg, and no -p). */ #undef LIB_SPEC #define LIB_SPEC "\ %{!shared: \ - %{!pg: \ - %{!pthread:-lc} \ - %{pthread:-lc_r}} \ - %{pg: \ - %{!pthread:-lc_p} \ - %{pthread:-lc_r_p}} \ + %{!pg: %{pthread:-lc_r} -lc} \ + %{pg: %{pthread:-lc_r_p} -lc_p} \ }" |