From 67932abf57a5aae06cbf65012d3982dcdd18a3ac Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Mon, 14 Feb 2011 00:40:15 +0000 Subject: [PATCH] re PR target/45808 (FreeBSD: -pthread is handled incompletely) PR target/45808 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case. From-SVN: r170121 --- gcc/ChangeLog | 5 +++++ gcc/config/freebsd-spec.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de8e127fdb6..4ac547505f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-14 Andriy Gapon + + PR target/45808 + * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case. + 2011-02-13 Ralf Wildenhues * configure: Regenerate. diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index 00b7407b1f4..d8b338226b8 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -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