%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: d...@tar.com
%5182 N. Maple Lane            phone: 414-367-5450
%Chenequa WI 53058             fax:   414-367-5852
%
%
%To Unsubscribe: send mail to majord...@freebsd.org
%with "unsubscribe freebsd-current" in the body of the message
%




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

Reply via email to