diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index b1848d2076..726ada8821 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -9398,6 +9398,22 @@ bacula:*:910: + + Threading libraries + + The threading library must be linked to the binaries + using a special linker flag -pthread on + &os;. If a port insists on linking + -lpthread or -lc_r + directly, patch it to use PTHREAD_LIBS + variable provided by the ports framework. This variable + usually has the value of -pthread, but + on certain architectures and &os; versions it can have + different values, so do not just hardcode + -pthread into patches and always use + PTHREAD_LIBS. + + Feedback