Date: Tue, 4 Apr 2006 16:00:37 GMT From: Jean-Baptiste Quenot <jbq@caraldi.com> To: freebsd-doc@FreeBSD.org Subject: Re: docs/95275: Threading libraries in Porter's Handbook Message-ID: <200604041600.k34G0bTI030496@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/95275; it has been noted by GNATS. From: Jean-Baptiste Quenot <jbq@caraldi.com> To: Pav Lucistnik <pav@FreeBSD.org> Cc: bug-followup@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604041600.k34G0bTI030496>