From owner-freebsd-questions Sat Nov 3 16:11:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.247.226]) by hub.freebsd.org (Postfix) with ESMTP id 4897C37B405 for ; Sat, 3 Nov 2001 16:11:18 -0800 (PST) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.11.6/8.11.4) with ESMTP id fA40BIB39956 for ; Sat, 3 Nov 2001 16:11:18 -0800 (PST) (envelope-from joup@bigfoot.com) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Sat, 3 Nov 2001 16:11:18 -0800 (PST) From: Mark Miller X-X-Sender: mjm@soda.csua.berkeley.edu To: freebsd-questions@freebsd.org Subject: solving pthread problems permanently? Message-ID: <20011103155245.Q37701-100000@soda.csua.berkeley.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to figure out a way to add either -lc_r or -llthreads to the linking process of any port build that requires pthreads (to avoid the "undefined reference to `pthread_getspecific'" errors). Can someone tell me where I might put this? I was thinking about some file in /usr/ports/Mk/, but I don't really know much about the build process. Or another question-- if I just add these libraries to *every* build, will that be somehow detrimental to random binaries? I don't mind having my compiles being a little slower, but I don't want the addition of libraries to slow down the running of my applications. Also, if this is possible, how do I do it? And finally-- which library (c_r or linuxthreads) is preferable? I have both installed. Thanks, Mark Miller To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message