# How to get libpthread?

**URL:** <https://forum.openwrt.org/t/how-to-get-libpthread/116587>\
**Category:** For Developers\
**Created:** [January 6, 2022, 8:00pm UTC](https://forum.openwrt.org/t/how-to-get-libpthread/116587 "2022-01-06T20:00:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [January 7, 2022, 6:10pm UTC](https://forum.openwrt.org/t/how-to-get-libpthread/116587/3 "2022-01-07T18:10:32Z")

</div>

Also for those broken build systems that unconditionally do `-lpthread`:

> [@/usr/bin/ld: cannot find -lpthread](https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404/5):
>
> Pthread primitives are part of the core libc.so library. To satisfy -lpthread, create an empty AR archive somewhere in the library search path. E.g.: ar -rc /usr/lib/libpthread.a

---

_[View the full topic](https://forum.openwrt.org/t/how-to-get-libpthread/116587)._
