Date: Thu, 21 Dec 2006 15:56:22 -0300 From: Alejandro Pulver <alepulver@FreeBSD.org> To: freebsd-ports@FreeBSD.org Subject: Problem with -pthread linking Message-ID: <20061221155622.618f55b0@phobos.mars.bsd>
next in thread | raw e-mail | index | archive | help
--Sig_Boou7_LL43L25cClDEtPJ8b Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello. I was updating the games/r1q2 port which consists of a client executable (r1q2) that loads the render (ref_gl.so) at run-time with dlopen(), when I noticed it wasn't able to load it. The reason is that the render needs SDL, which needs pthread but neither the render or SDL have a reference to pthread (even though the render is linked with `sdl-config --libs` which includes '-pthread'). If I link the render with '-lpthread' it adds the reference (is reported by 'ldd') and works. Is there a cleaner way to do this? Thanks and Best Regards, Ale --Sig_Boou7_LL43L25cClDEtPJ8b Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFitjhiV05EpRcP2ERAmK9AKDO1J1BRf8tE+cQtNTaAcIciVjN+QCgslbJ RAbaVIcxk6rjOcLI40LdMBc= =9M8N -----END PGP SIGNATURE----- --Sig_Boou7_LL43L25cClDEtPJ8b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061221155622.618f55b0>