From 5fda7023ff87c3103f4eb52b4205fb2549e17423 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 21 Sep 2009 18:48:10 +0200 Subject: [PATCH] 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 Signed-off-by: Peter Korsgaard --- package/samba/samba.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/samba/samba.mk b/package/samba/samba.mk index 45e9938cf6..82bf152e23 100644 --- a/package/samba/samba.mk +++ b/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) \ -- 2.30.2