From 087ee43044cead9272d41676f3bb5e13d56c8f77 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 10 Apr 1998 09:33:09 +0000 Subject: [PATCH] Add a reference to the gcc linker option -pthread that is part of the FreeBSD configuration LIB_SPEC. --- share/man/man3/pthread.3 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/share/man/man3/pthread.3 b/share/man/man3/pthread.3 index 2e3000bec49..0ce2f139eae 100644 --- a/share/man/man3/pthread.3 +++ b/share/man/man3/pthread.3 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: pthread.3,v 1.4 1997/12/25 09:36:40 hoek Exp $ +.\" $Id: pthread.3,v 1.5 1998/01/02 19:19:50 alex Exp $ .\" .Dd April 4, 1996 .Dt PTHREAD 3 @@ -182,6 +182,14 @@ is built as part of a 'make world'. To disable the build of .Fa libc_r you must supply the '-DNOLIBC_R' option to .Xr make 1 . +.Pp +A FreeBSD specific option has been added to gcc to make linking +threaded processes simple. +.Fa gcc -pthread +links a threaded process against +.Fa libc_r +instead of +.Fa libc. .Sh STANDARDS The functions in .Fa libc_r @@ -189,9 +197,9 @@ with the .Fa pthread_ prefix and not .Fa _np -suffix are expected to conform to IEEE +suffix conform to IEEE .Pq Dq Tn POSIX -Std 1003.1c. +Std 1003.1 Second Edition 1996-07-12 .Pp The functions in libc_r with the .Fa pthread_