自己在openwrt/package/utils/目录下新添加了一个程序包,在编译的时候报错,
...is missing dependencies for the following libraries:libpthread.so.0.
这需要在该程序包的顶层makefile中添加红色字体部分。
define Package/rssi_client
SECTION:=utils
CATEGORY:=Utilities
TITLE:=rssi tool
DEPENDS:=+libncurses <span style="color:#FF0000;">+libpthread</span>
endef
另外,还是在该文件中
添加
TARGET_LDFLAGS:= -lpthread
将线程库的链接添加到目标链接标识符里。