# /usr/bin/ld: cannot find -lpthread

**URL:** <https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404>\
**Category:** For Developers\
**Created:** [August 6, 2018, 8:52pm UTC](https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404 "2018-08-06T20:52:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [August 7, 2018, 7:45am UTC](https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404/5 "2018-08-07T07:45:16Z")

</div>

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/usr-bin-ld-cannot-find-lpthread/18404)._
