From: David O'Brien Date: Fri, 14 Jan 2005 02:06:26 +0000 (+0000) Subject: backport: freebsd-spec.h: Use KSE pthread lib for -pthread. X-Git-Tag: releases/gcc-3.3.6~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf69c0991736f804b4b1981f47cbcdc1a8db3af3;p=thirdparty%2Fgcc.git backport: freebsd-spec.h: Use KSE pthread lib for -pthread. 2005-01-13 David O'Brien Backport from mainline: * config/freebsd-spec.h: Use KSE pthread lib for -pthread. From-SVN: r93624 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b05b45708911..64c8bfb59049 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-01-13 David O'Brien + + Backport from mainline: + * config/freebsd-spec.h: Use KSE pthread lib for -pthread. + 2005-01-08 Sergey M. Samoylov Backport: diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index 4d81d80c4431..2248698e5444 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -130,13 +130,7 @@ is built with the --enable-threads configure-time option.} \ %{pg: -lc_p} \ }" #else -#if FBSD_MAJOR >= 5 -#define FBSD_LIB_SPEC " \ - %{!shared: \ - %{!pg: %{pthread:-lc_r} -lc} \ - %{pg: %{pthread:-lc_r_p} -lc_p} \ - }" -#else +#if FBSD_MAJOR < 5 #define FBSD_LIB_SPEC " \ %{!shared: \ %{!pg: \ @@ -146,5 +140,11 @@ is built with the --enable-threads configure-time option.} \ %{!pthread:-lc_p} \ %{pthread:-lc_r_p}} \ }" +#else +#define FBSD_LIB_SPEC " \ + %{!shared: \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ + }" #endif #endif