From owner-freebsd-current Tue Apr 13 15:21: 7 1999 Delivered-To: freebsd-current@freebsd.org Received: from cantor.boolean.net (cantor.boolean.net [209.133.111.73]) by hub.freebsd.org (Postfix) with ESMTP id 8058F14C91 for ; Tue, 13 Apr 1999 15:21:06 -0700 (PDT) (envelope-from Kurt@OpenLDAP.Org) Received: from gypsy (localhost [127.0.0.1]) by cantor.boolean.net (8.9.2/8.9.1) with SMTP id WAA49265 for ; Tue, 13 Apr 1999 22:17:42 GMT (envelope-from Kurt@OpenLDAP.Org) Message-Id: <3.0.5.32.19990413151601.009b2100@localhost> X-Sender: kurt@localhost (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 13 Apr 1999 15:16:01 -0700 To: freebsd-current@freebsd.org From: "Kurt D. Zeilenga" Subject: compiler specs for -pthread/-kthread Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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