[physfs] Bug with PhysFS's CMake build

Brad Smith brad at comstyle.com
Wed Aug 29 10:45:33 EDT 2012


On Fri, Aug 24, 2012 at 01:49:42AM -0400, Brad Smith wrote:
> On Fri, Aug 24, 2012 at 01:19:38AM -0400, Ryan C. Gordon wrote:
> > 
> > >One last bug I've run into with PhysFS's 2.0's CMake build is that it
> > >checks for the pthread.h header but does not link libpthread to the
> > >libphysfs shared library.
> > 
> > Does OpenBSD need "-lpthread", or just "-pthread" on the linker
> > command line? I can't remember if that was a BSD thing or not.
> 
> Just -lpthread to the linker.

BTW, you should have CMake check for the existence of say pthread_mutex_lock
within a pthreads lib. The physfs 1 tree only linked in the pthreas lib on
FreeBSD/OpenBSD although the issue affects other *BSD OS's (NetBSD, DragonFly,
Bitrig, etc.) and POSIX compliant OS's.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the physfs mailing list