summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorSven Neumann <s.neumann@raumfeld.com>2011-09-13 10:42:08 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-13 21:32:14 +0200
commitc71b56b8c1dd6c389be8457d534a04e99cf6bf9c (patch)
tree0ceee8f9cf5e4d39096a27ca74c6e9de3bf266d5 /package
parentb25b711e4a62095817e415c4961ea5530c28876e (diff)
samba: fix linking of smbd with avahi support
Expliticly link with -lpthread if smbd is compiled with avahi support. Otherwise the binary will fail to run. Signed-off-by: Sven Neumann <s.neumann@raumfeld.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/samba/samba-fix-smbd-libs-avahi.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/samba/samba-fix-smbd-libs-avahi.patch b/package/samba/samba-fix-smbd-libs-avahi.patch
new file mode 100644
index 000000000..d6423def9
--- /dev/null
+++ b/package/samba/samba-fix-smbd-libs-avahi.patch
@@ -0,0 +1,15 @@
+Expliticly link with -lpthread if smbd is compiled with
+avahi support. Otherwise the binary will fail to run.
+
+Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
+--- samba-3.5.6-orig/source3/Makefile.in 2010-10-07 18:41:16.000000000 +0200
++++ samba-3.5.6/source3/Makefile.in 2010-10-27 14:52:40.000000000 +0200
+@@ -1552,7 +1552,7 @@
+ $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
+ $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
+ $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
+- $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
++ $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS)
+
+ bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
+ @echo Linking $@