And as such fails to emerge. Patch to follow
Created attachment 99591 [details, diff] Force linking against openal and pthreads
Created attachment 99642 [details, diff] openal-pthread.patch It`s better to use -pthread instead of -lpthread
Did anyone test this on Linux after these changes? It dies for me. inertia ~ # emerge --oneshot freealut Calculating dependencies... done! >>> Emerging (1 of 1) media-libs/freealut-1.1.0 to / * freealut-1.1.0.tar.gz MD5 ;-) ... [ ok ] * freealut-1.1.0.tar.gz RMD160 ;-) ... [ ok ] * freealut-1.1.0.tar.gz SHA1 ;-) ... [ ok ] * freealut-1.1.0.tar.gz SHA256 ;-) ... [ ok ] * freealut-1.1.0.tar.gz size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking freealut-1.1.0.tar.gz to /var/tmp/portage/media-libs/freealut-1.1.0/work * Running eautoreconf in '/var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0' ... * Running aclocal -I /var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0/admin/autotools/m4 ... [ ok ] * Running libtoolize --copy --force --automake ... [ ok ] * Running aclocal -I /var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0/admin/autotools/m4 ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy ... [ !! ] * Failed Running automake ! * * Include in your bugreport the contents of: * * /var/tmp/portage/media-libs/freealut-1.1.0/temp/automake-28040.out !!! ERROR: media-libs/freealut-1.1.0 failed. Call stack: ebuild.sh, line 1568: Called dyn_unpack ebuild.sh, line 708: Called src_unpack freealut-1.1.0.ebuild, line 25: Called eautoreconf autotools.eclass, line 83: Called eautomake autotools.eclass, line 184: Called autotools_run_tool 'automake' '--add-missing' '--copy' autotools.eclass, line 235: Called die !!! Failed Running automake ! !!! If you need support, post the topmost build error, and the call stack if relevant. !!! This ebuild is from an overlay: '/usr/local/portage'
Can you paste the content of that file?
Yeah, I guess that would have made some sense, huh? ***** automake ***** src/Makefile.am:23: linker flags such as `-pthread' belong in `libalut_la_LDFLAGS
Using -pthread and putting it in libalut_la_LDFLAGS works on linux, but causes the original error on bsd. My first patch works fine, and compiles on both.
So it does... changed in CVS... thanks for the patch, Roy!