docs/95275: Threading libraries in Porter's Handbook

Jean-Baptiste Quenot jbq at caraldi.com
Tue Apr 4 16:00:38 UTC 2006


The following reply was made to PR docs/95275; it has been noted by GNATS.

From: Jean-Baptiste Quenot <jbq at caraldi.com>
To: Pav Lucistnik <pav at FreeBSD.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: docs/95275: Threading libraries in Porter's Handbook
Date: Tue, 4 Apr 2006 17:57:37 +0200

 --tNQTSEo8WG/FKZ8E
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Right, please find attached the updated patch.
 -- 
      Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/
 
 --tNQTSEo8WG/FKZ8E
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="20060403-freebsd-porter-handbook-pthread.txt"
 
 --- book.sgml.orig	Mon Apr  3 13:11:37 2006
 +++ book.sgml	Tue Apr  4 17:57:02 2006
 @@ -9529,6 +9529,15 @@
  	  different values, so do not just hardcode
  	  <literal>-pthread</literal> into patches and always use
  	  <makevar>PTHREAD_LIBS</makevar>.</para>
 +
 +  <note>
 +    <para>If building the port errors out with <literal>unrecognized option
 +        '-pthread'</literal> when setting <makevar>PTHREAD_LIBS</makevar>, it
 +      may be desirable to use <command>gcc</command> as linker by setting
 +      <makevar>CONFIGURE_ENV</makevar> to <literal>LD=${CC}</literal>.  Indeed
 +      the <literal>-pthread</literal> option is not supported by
 +      <command>ld</command>.</para>
 +  </note>
        </sect1>
  
        <sect1 id="dads-freedback">
 
 --tNQTSEo8WG/FKZ8E--



More information about the freebsd-doc mailing list