Modding, Mission Design, and Coding > Cross-Platform Development

OpenBSD OpenAL configure test fix

(1/2) > >>

rsaxvc:
configure's OpenAL test fails on OpenBSD due to not linking in libpthread. The attached patch just adds -lpthread to the OpenAL test. It doesn't currently not limit itself to OpenBSD, but I don't think it'll hurt any other unix-based systems to have it on there.

[attachment deleted by an evil time traveler]

rsaxvc:
Perhaps this is an OpenAL problem? Should libopenal be specifying that it needs libpthreads? Is there a way to do that?

niffiwan:
hmm... I think we'll need to update configure.ac rather than the acinclude.m4?  Although I'm not 100% sure why the following statement isn't working for OpenBSD, when it seems so be working for FreeBSD...


--- Code: (configure.ac:456) ---dnl Posix Threads
AC_SEARCH_LIBS([pthread_mutex_timedlock], [pthread])
FS2_LIBS=$FS2_LIBS" -lpthread"

--- End code ---

rsaxvc:
so, fs2 builds fine once the configure check passes(-lpthreads applied correctly). My patch only adds '-lpthreads' to the OpenAL test case. Should the OpenAL test case be affected by FS2_LIBS? The OpenAL test case also uses $LIBS, but I'm not sure where that comes from.

chief1983:
I have OpenAL Soft installed on my FreeBSD environment, but apparently they also provide openal-20060211_12 in the ports system, which I don't have installed.  If this is the newest OpenBSD, the only OpenAL package I'm seeing is openal-1.15.1v0, which should be OpenAL Soft.  So I'm not sure why the same config isn't working on both platforms.  If it's an older system or somehow the older OpenAL reference library, I'm not sure what kinds of differences there are between those releases.

Navigation

[0] Message Index

[#] Next page

Go to full version