From afd95693304e360d83a8aff2f123b9fb5e254d4f Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 16 Dec 2012 22:56:36 +0000 Subject: [PATCH] Modernize the 12.11 Threading Libraries section of the PH Approved by: bcr (mentor) --- en_US.ISO8859-1/books/porters-handbook/book.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.xml b/en_US.ISO8859-1/books/porters-handbook/book.xml index 672276d0b3..367fa4f549 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.xml +++ b/en_US.ISO8859-1/books/porters-handbook/book.xml @@ -16140,8 +16140,8 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@" 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 + a port insists on linking -lpthread + 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 @@ -16153,7 +16153,7 @@ exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@" If building the port errors out with unrecognized option '-pthread' when setting PTHREAD_LIBS, it may be desirable - to use gcc as linker by setting + to use cc as linker by setting CONFIGURE_ENV to LD=${CC}. The -pthread option is not supported by