-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pthread checks and compiler flags #8
Comments
Should be fixed now. |
Still there, to build rtorrent from git, commit `ee859a61375ad3919ebab41b730b6edcdaaeb21a', I have to set LIBS:
I missed something? |
Do 'grep PTHREAD config.log' and check that the PTHREAD_LIBS is the right value. Also grep for FLAGS and LIBS. |
I tried: unset LIBS, run makepkg (explanation below) but compilation failed:
then did
After I set LIBS again and successfully compile rtorrent again. settings for PTHREAD are the same. Not sure what could cause the failure but here is where libpthread located:
P.S. I'm using Archlinux as I already said so I use makepkg tool and PKGBUILD in which I set or unset env variables. |
You also need to grep for LIBS and CXXFLAGS. |
Now I'm completely confused.
and ignoring spaces
Any suggestions? |
Updated the pthread checks to have the setting of LIBS and CXXFLAGS outside of the macro, not sure if it will fix anything but you can try. |
Thank you, now I'm able to compile rtorrent w/o need to set LIBS. |
I had that problem on gentoo (rtorrent-0.8.9), using LIBS="-lpthread" emerge rtorrent solved the problem. Might want to update the ebuild |
Currently, rtorrent fails to compile on some systems because it’s missing some compiler flags.
Please add Autoconf checks for pthread, and use the appropriate compiler flags (on most systems, adding
-pthread
toCXXFLAGS
andLDFLAGS
should do the trick).The text was updated successfully, but these errors were encountered: