docs/95275: Threading libraries in Porter's Handbook

Jean-Baptiste Quenot jb.quenot at
Mon Apr 3 17:30:18 UTC 2006

>Number:         95275
>Category:       docs
>Synopsis:       Threading libraries in Porter's Handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 03 17:30:13 GMT 2006
>Originator:     Jean-Baptiste Quenot
>Release:        FreeBSD 5.5-PRERELEASE i386
System: FreeBSD vision.anyware 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #1: Thu Mar 9 19:20:53 CET 2006 jbq at vision.anyware:/usr/obj/usr/src/sys/VISION i386
The porter's handbook must be improved because it does not state that ld does
not support -pthread, see patch below.  Thanks in advance!
--- book.sgml.orig	Mon Apr  3 13:11:37 2006
+++ book.sgml	Mon Apr  3 13:28:39 2006
@@ -9529,6 +9529,14 @@
 	  different values, so do not just hardcode
 	  <literal>-pthread</literal> into patches and always use
+  <note>
+    <para>FreeBSD may use value <literal>-pthread</literal> for
+      <makevar>PTHREAD_LIBS</makevar>, but <command>ld</command> does not
+      support this.  In this case, it may be desirable to use
+      <command>gcc</command> as linker by setting
+      <makevar>CONFIGURE_ENV</makevar> to <literal>LD=${CC}</literal>.</para>
+  </note>
       <sect1 id="dads-freedback">

More information about the freebsd-doc mailing list