浏览代码

samba: explicitly link with -pthread if avahi support is enabled

The avahi-client library makes use of threads. We need to link the
smbd binary with -pthread if avahi support is enabled. Otherwise the
binary will crash at startup.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Sven Neumann 16 年之前
父节点
当前提交
5fda7023ff
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/samba/samba.mk

+ 1 - 0
package/samba/samba.mk

@@ -36,6 +36,7 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked
 		samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
 		samba_cv_fpie=no \
 		libreplace_cv_HAVE_IPV6=$(if $(BR2_INET_IPV6),yes,no) \
+		AVAHI_LIBS=-pthread \
 		./configure \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \