看板 FB_doc 關於我們 聯絡資訊
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-- _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"