]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: freebsd-spec.h: Use KSE pthread lib for -pthread.
authorDavid O'Brien <obrien@FreeBSD.org>
Fri, 14 Jan 2005 02:06:26 +0000 (02:06 +0000)
committerDavid O'Brien <obrien@gcc.gnu.org>
Fri, 14 Jan 2005 02:06:26 +0000 (02:06 +0000)
2005-01-13  David O'Brien  <obrien@FreeBSD.org>
Backport from mainline:
* config/freebsd-spec.h:  Use KSE pthread lib for -pthread.

From-SVN: r93624

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

index b05b45708911c6bfb845a6c7c0430f7c7559a676..64c8bfb590498c8356809d386054bab7a7dadf8c 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-13  David O'Brien  <obrien@FreeBSD.org>
+
+       Backport from mainline:
+       * config/freebsd-spec.h:  Use KSE pthread lib for -pthread.
+
 2005-01-08  Sergey M. Samoylov  <ssamoylov@dev.rtsoft.ru>
 
        Backport:
index 4d81d80c44316d1c746aeb7e8c03cfb63d7de5e7..2248698e5444a4ac121e49ffeae7df0010a96705 100644 (file)
@@ -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