On Sat, 30 Dec 2006, John Cupitt wrote: > > It's not so easy for users of lcms to decide whether the installed > version is thread-safe. And I think lcms.pc needs to know about this > too: it should add -lpthreads to the library line, and possibly > -D_REENTRANT to the cflags.
It is certainly useful to provide a way for users to know if the library is "thread safe". Whether lcms should force dependent applications to build as multi-threaded applications is a matter of some conjecture. Unless the lcms interface headers expose implementation features influenced by -D_REENTRANT (e.g. stdio), then it is not needed. Likewise, some operating systems use weak-linkage so that if the pthreads library is not applied, stub API equivalents are provided which allow applications which do not require multithread support to run properly. If the operating system does not use weak-linkage then the application will fail to link. Bob ====================================== Bob Friesenhahn [EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user