From: David O'Brien Date: Fri, 14 Jan 2005 05:00:32 +0000 (+0000) Subject: backport: freebsd-spec.h: Make KSE pthread lib logic the default. X-Git-Tag: releases/gcc-3.4.4~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2e3b070486dfd51018027e0e385c43f42583d6;p=thirdparty%2Fgcc.git backport: freebsd-spec.h: Make KSE pthread lib logic the default. 2005-01-13 David O'Brien Backport from mainline: * config/freebsd-spec.h: Make KSE pthread lib logic the default. From-SVN: r93630 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0e587823d0f..ea44e9033efa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-01-13 David O'Brien + + Backport from mainline: + * config/freebsd-spec.h: Make KSE pthread lib logic the default. + 2005-01-13 David Edelsohn * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index 7329a1f61076..a98b0e5108c9 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -129,13 +129,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:-lpthread} -lc} \ - %{pg: %{pthread:-lpthread_p} -lc_p} \ - }" -#else +#if FBSD_MAJOR < 5 #define FBSD_LIB_SPEC " \ %{!shared: \ %{!pg: \ @@ -145,6 +139,12 @@ 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