diff mbox

update -pthread specs for FreeBSD

Message ID alpine.LNX.2.00.1102260015590.15611@gerinyyl.fvgr
State New
Headers show

Commit Message

Gerald Pfeifer Feb. 25, 2011, 11:16 p.m. UTC
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 <avg@freebsd.org>

	PR target/45808
	* config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
	Update copyright years.
diff mbox

Patch

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