-
Notifications
You must be signed in to change notification settings - Fork 29
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
FreeBSD ld: error: unable to find library -lpthreads #158
Comments
Huh, that's weird. The library is called Wildly guess that these people happen to solve the same issue, I would hope that the following would fix the issue:
I don't have a FreeBSD installation available, and I can't easily test it. Also, I have no experience with any BSD, I'm sorry if you have to test around with this a bit. I would assume that it goes into line 38, right before Let me know if that works. If it does, please make a PR! :) |
Thank you for your quick answer. It might be probably trivial but the current error with those lines is:
|
You're right, I forgot to replace Hmm, then apparently cmake runs into this issue before even trying to link the plugin. I'm not really sure what the "correct" solution is, or how cmake wants to be treated. As a workaround, I think the following might work, although it feels a bit brutish: add_link_options("-pthread") Again, you might have to try around a bit, I can't try this out on FreeBSD. The idea behind this is to inject a linker option, and thus make the test believe that pthread is available without even linking against any library. Your logs indicate that cmake considers this possible, and checks this first. |
So update. But no luck and the problem still persist. If i understand correctly. On linux to use |
Hello,
i'm trying to port newest telegram libpurple to freebsd but i'm currently having problems with pthreads.h library.
the library exists on the system
here is my CMakeError.log
The text was updated successfully, but these errors were encountered: