Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 1999 15:49:35 -0700
From:      "Russell L. Carter" <rcarter@pinyon.org>
To:        freebsd-current@freebsd.org
Subject:   Re: compiler specs for -pthread/-kthread 
Message-ID:  <199904132249.PAA38373@psf.Pinyon.ORG>
In-Reply-To: Your message of "Tue, 13 Apr 1999 17:45:07 EST." <19990413174507.A440@tar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
%On Tue, Apr 13, 1999 at 03:16:01PM -0700, Kurt D. Zeilenga wrote:
%> To facilate auto detection of the local threading environment,
%> it would be nice if the -?thread options set all the necessary
%> compiler/linker flags.  It is a common practace for such
%> options to specify both compilation and link options.
%> 
%> I suggest the EGCS specs be adjusted to:
%> 
%> -pthread => -D_THREAD_SAFE -D_UTHREADS -lc_r
%> -kthread => -D_THREAD_SAFE -D_KTHREADS -lpthread
%
%A little known and not well documented fact is that FreeBSD also
%uses _REENTRANT in its header files.  Ever wondered why you 
%couldn't find declarations for gamma_r, lgamma_r, gammaf_r,
%or lgammaf_r?  Check math.h.  :) 
%
%Personally I think conditional declarations should just be
%eliminated from math.h, rather than tell people they might
%have to add -D_REENTRANT. :) 
%
%> 
%> If the LinuxThread "port" is targetted to be -kthread:
%> 
%> -kthread => -D_REENRANT -D_LINUXTHREADS -lpthread

and don't forget -lgcc_r...

Russell

[...]

%-- 
%Richard Seaman, Jr.           email: dick@tar.com
%5182 N. Maple Lane            phone: 414-367-5450
%Chenequa WI 53058             fax:   414-367-5852
%
%
%To Unsubscribe: send mail to majordomo@FreeBSD.org
%with "unsubscribe freebsd-current" in the body of the message
%




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904132249.PAA38373>