Date: Tue, 15 Sep 2009 20:32:11 +0200 From: Lapo Luchini <lapo@lapo.it> To: Eir Nym <eirnym@gmail.com> Cc: mnag@FreeBSD.org, freebsd-ports-bugs@freebsd.org, linimon@freebsd.org Subject: Re: ports/134743: devel/Monotone and pthreaded dependencies Message-ID: <4AAFDDAB.3090204@lapo.it> In-Reply-To: <ac29a5e50909151021q280eef79rc70f82d7eda3cc96@mail.gmail.com> References: <200909151718.n8FHILLC036418@freefall.freebsd.org> <ac29a5e50909151021q280eef79rc70f82d7eda3cc96@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Monotone is not multithreaded, but (as you told me) it better be linked with -pthread if linked versus sqlite which depends on -pthread; right now SQLite can be compiled both ways (with a negligible overhead, as far as I know; but if I'm wrong please tell me) but monotone's configure can't know that because `pkg-config sqlite3 --libs` doesn't advertise that (it does that only when --static); always using -pthread is what's done on other OSes (e.g. OpenBSD) and it's probably the easiest thing to do in the short period, but (maybe) not the best one in the long period. I'm adding mnag@ in Cc (as sqlite3 port maintainer) to ask him: 1. is it correct that `ldd /usr/local/lib/libsqlite3.so.8` shows libthr? 2. is it correct that `pkg-config sqlite3 --libs` doesn't advertise pthreads? upstream as: http://www.sqlite.org/cvstrac/tktview?tn=3943 3. also, can you tell me how much (if at all) overhead there is using SQLite with -pthreads in a program that's single-threaded? is it worth having an OPTION for that?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AAFDDAB.3090204>