Hacker News new | ask | show | jobs
by aloisklink 1085 days ago
Btw, CMake has the [FindThreads][1] module to automatically link with `-lpthread`/`-pthread` in a platform-agnostic way.

Even after this change in glibc, you may still need to use FindThreads to handle [HP-UX][2] (some of which still run [Itanium][3]!!!).

[1]: https://cmake.org/cmake/help/latest/module/FindThreads.html

[2]: https://en.wikipedia.org/wiki/HP-UX

[3]: https://en.wikipedia.org/wiki/Itanium