re PR target/45808 (FreeBSD: -pthread is handled incompletely)
authorAndriy Gapon <avg@freebsd.org>
Mon, 14 Feb 2011 00:40:15 +0000 (00:40 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Mon, 14 Feb 2011 00:40:15 +0000 (00:40 +0000)
PR target/45808
* config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.

From-SVN: r170121

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

index de8e127..4ac5475 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-14  Andriy Gapon <avg@freebsd.org>
+
+       PR target/45808
+       * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
+
 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure: Regenerate.
index 00b7407..d8b3382 100644 (file)
@@ -121,6 +121,9 @@ is built with the --enable-threads configure-time option.}          \
   %{!shared:                                                           \
     %{!pg: %{pthread:-lpthread} -lc}                                   \
     %{pg:  %{pthread:-lpthread_p} -lc_p}                               \
+  }                                                                    \
+  %{shared:                                                            \
+    %{pthread:-lpthread} -lc                                           \
   }"
 #endif
 #endif