From: Sven Neumann Date: Mon, 21 Sep 2009 16:48:10 +0000 (+0200) Subject: samba: explicitly link with -pthread if avahi support is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fda7023ff87c3103f4eb52b4205fb2549e17423;p=buildroot.git 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 --- 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) \