From patchwork Fri Feb 25 23:16:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: update -pthread specs for FreeBSD Date: Fri, 25 Feb 2011 13:16:43 -0000 From: Gerald Pfeifer X-Patchwork-Id: 84589 Message-Id: To: Loren James Rittle Cc: gcc-patches@gcc.gnu.org, Andriy Gapon On Mon, 14 Feb 2011, Gerald Pfeifer wrote: > Thanks, Andriy! This patch will be in GCC 4.6.0 and I am also thinking > to apply it to the GCC 4.5 branch given that it brings this in line with > the system compiler. Now also on the gcc-4.5 branch, concrete patch below. Gerald 2011-02-25 Andriy Gapon PR target/45808 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case. Update copyright years. Index: config/freebsd-spec.h =================================================================== --- config/freebsd-spec.h (revision 170499) +++ config/freebsd-spec.h (working copy) @@ -1,5 +1,6 @@ /* Base configuration file for all FreeBSD targets. - Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009, 2011 + Free Software Foundation, Inc. This file is part of GCC. @@ -139,6 +140,9 @@ %{!shared: \ %{!pg: %{pthread:-lpthread} -lc} \ %{pg: %{pthread:-lpthread_p} -lc_p} \ + } \ + %{shared: \ + %{pthread:-lpthread} -lc \ }" #endif #endif