diff mbox

update -pthread specs for FreeBSD

Message ID 4C94F658.6050000@freebsd.org
State New
Headers show

Commit Message

Andriy Gapon Sept. 18, 2010, 5:26 p.m. UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

on 18/09/2010 20:24 Andriy Gapon said the following:
> 
> Please consider the attached patch that fixes what -pthread should expand too
> on modern version of FreeBSD. The patch is based on the changes that are made
> locally to a copy of GCC (4.2) in FreeBSD source tree: 
> http://svn.freebsd.org/viewvc/base/head/contrib/gcc/config/freebsd-spec.h?revision=200038&view=markup

Apologies,

it looks like I messed up and attached the wrong file.
Here is the correct patch.

- -- 
Andriy Gapon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMlPZXAAoJEHSlLSemUf4vUAgIALN509mWpbkRy3/pZjFGMz7m
zVKsbh/bUypq2LXKMs9de0gCECSp6wxYsF3BgWaaRQqa7OMZTS+yJM7XZockeNKB
j7DrFF2Y17rMznNEqT7JTpHU4LZaRy991s23lWdbXHf5dVgZ98nlbnNYuxyUJCp0
QdTDp8IWpqEPqk4jtFDEAl1iXLWuXzKYK3SYypxalJnEtyJrzPvauvYlrHwLbyAK
uTrSD4wScVeunHtcmM6pOTZJ1DPWFbGFrXPEVbcB6wldsWpQnpWRMpLE4fbdiHG5
Dsg+fhFOZrho8opsq/NLK/eWdCzTWrpUFwl02LIMsdeLgNFFF6vvrUn4Ou0P2Uc=
=6Zob
-----END PGP SIGNATURE-----
diff mbox

Patch

--- gcc/config/freebsd-spec.h.orig	2010-09-13 14:35:06.151574339 +0300
+++ gcc/config/freebsd-spec.h	2010-09-13 14:35:08.171465130 +0300
@@ -139,6 +139,9 @@ 
   %{!shared:								\
     %{!pg: %{pthread:-lpthread} -lc}					\
     %{pg:  %{pthread:-lpthread_p} -lc_p}				\
+  %{shared:								\
+    %{!pg: %{pthread:-lpthread} -lc}					\
+    %{pg:  %{pthread:-lpthread_p} -lc_p}				\
   }"
 #endif
 #endif