Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2001 16:11:18 -0800 (PST)
From:      Mark Miller <joup@bigfoot.com>
To:        freebsd-questions@freebsd.org
Subject:   solving pthread problems permanently?
Message-ID:  <20011103155245.Q37701-100000@soda.csua.berkeley.edu>

next in thread | raw e-mail | index | archive | help

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




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