Skip to contentSkip to conversation

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

PATCH New Sven Neumann 2 participants 2 messages Sep 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/samba/samba.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/samba/samba.mk +1 -0
index 2c344a1..1cead40 100644
@@ -61,6 +61,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) \
Signature · 1 line
1.6.0.4
#1 lore raw

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard