Patchwork update -pthread specs for FreeBSD

login
register
mail settings
Submitter Andriy Gapon
Date Sept. 18, 2010, 5:30 p.m.
Message ID <4C94F738.1050300@freebsd.org>
Download mbox | patch
Permalink /patch/65134/
State New
Headers show

Comments

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

on 18/09/2010 20:26 Andriy Gapon said the following:
> 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.
> 

Really bad evening, sorry again.
Now, hopefully it's the right patch.
Sorry for the noise and wasted time.

P.S. I partially blame Thunderbird for not having an option to preview an
attachment while composing an email.

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

iQEcBAEBAgAGBQJMlPc4AAoJEHSlLSemUf4v1/MIAKR5R94btmwoSN2fg8XqbVPH
6rsbNLVzCxt6bca/ylLd5qL3M3Wzko+wMsWpL9z0ApsDE3ps+lXJYsJrln2TwjrQ
lEKz0KVcUESAbrTBbPjpBYcffBV6gHAIVmx3RStIifonldxewSZTM0lMx1HiSj/c
s/fhjrqP7LNDKm40c2gKzh4onj73zThaD+cT4uhN4t4E3eMCzyTi3Tc1m7bfih7k
UU71f/+xQ+D0uxGCSyUwB3Pe9V2+L4voj5jJEsQbGJjF6LTQRQbgGRch0d0y0Bso
T4tk6ARZOdoFwSeTaFI8GbTL1pl9ki4QTUahcIdNGeYlP/mJ8r+XpYV5fQO8I4s=
=EwG9
-----END PGP SIGNATURE-----

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:								\
+    %{pthread:-lpthread} -lc						\
   }"
 #endif
 #endif