On 30/12/10 23:04, Julian Taylor wrote: > On Sun, 2010-12-19 at 22:07 +0000, Mateusz Loskot wrote: >> >> I've tried to apply your patch but I'm not sure it's correct. >> Are you sure you get the Threads_LIBRARIES variable set by CMake? >> It looks to me the FindThreads.cmake sets variables like >> CMAKE_THREAD_LIBS_INIT. >> >> Would you have updated version of this patch? >> >> Best regards, > > Hi, > an new try for this patch as also on linux the missing direct dependency > on pthread can cause crashes when the backends are loaded dynamically. > When they are unloaded the core loses the pthread linkage from the > database libraries (libmysql, libsqlite3, ...) and can crash. > > The patch only links the core with pthread as I guess the core always > outlives the backends, so indirect linkage should be enough.
Hi Julian, Big thanks for the patch. Committed. I tested it on Linux and looks fine. Let's see if it will work for others. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
