[Buildroot] [git commit master] samba: explicitly link with -pthread if avahi support is enabled
Peter Korsgaard
jacmet at sunsite.dk
Mon Sep 21 19:25:00 UTC 2009
commit: http://git.buildroot.net/buildroot/commit/?id=5fda7023ff87c3103f4eb52b4205fb2549e17423
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 at raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
package/samba/samba.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/samba/samba.mk b/package/samba/samba.mk
index 45e9938..82bf152 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) \
--
1.6.3.3
More information about the buildroot
mailing list