Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 1999 15:16:01 -0700
From:      "Kurt D. Zeilenga" <Kurt@OpenLDAP.Org>
To:        freebsd-current@freebsd.org
Subject:   compiler specs for -pthread/-kthread
Message-ID:  <3.0.5.32.19990413151601.009b2100@localhost>

next in thread | raw e-mail | index | archive | help
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

If the LinuxThread "port" is targetted to be -kthread:

-kthread => -D_REENRANT -D_LINUXTHREADS -lpthread

If the LinuxThread "port" is NOT targetted to be -kthread,
I suggest another -?thread option be added and the library
specified as -llthread.

-?thread => -D_REENTRANT -D_LINUXTHREADS -llthread

After modify the specification, the headers/libraries would
be adjusted as needed.  I can easily submit diffs if desirable.

Kurt


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?3.0.5.32.19990413151601.009b2100>