]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: freebsd-spec.h: Make KSE pthread lib logic the default.
authorDavid O'Brien <obrien@FreeBSD.org>
Fri, 14 Jan 2005 05:00:32 +0000 (05:00 +0000)
committerDavid O'Brien <obrien@gcc.gnu.org>
Fri, 14 Jan 2005 05:00:32 +0000 (05:00 +0000)
2005-01-13  David O'Brien  <obrien@FreeBSD.org>
Backport from mainline:
* config/freebsd-spec.h:  Make KSE pthread lib logic the default.

From-SVN: r93630

gcc/ChangeLog
gcc/config/freebsd-spec.h

index c0e587823d0ff6a0a9331d25ea5d86abd9bb16e1..ea44e9033efa04f6109feb9cea4ec0cee0192443 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-13  David O'Brien  <obrien@FreeBSD.org>
+
+       Backport from mainline:
+       * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
+
 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
index 7329a1f610761910b203c49d946e03e51cfe1c94..a98b0e5108c9dd6a9eb53e8e2d5f84eef87fc50c 100644 (file)
@@ -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