summaryrefslogtreecommitdiffstats
path: root/package/samba/samba-0001-fix-smbd-libs-avahi.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-03-02 09:42:17 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-02 15:20:40 +0100
commit80ad06e51c24199e15614a6a7c89e06c7fca44c6 (patch)
tree29d01e5cd27eee2cbdd7a50591a1b263bfb4890f /package/samba/samba-0001-fix-smbd-libs-avahi.patch
parent56258f491bf459cbdb2cee1db3267030340755f0 (diff)
downloadbuildroot-80ad06e51c24199e15614a6a7c89e06c7fca44c6.tar.gz
buildroot-80ad06e51c24199e15614a6a7c89e06c7fca44c6.zip
samba: update description and rename patches
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/samba/samba-0001-fix-smbd-libs-avahi.patch')
-rw-r--r--package/samba/samba-0001-fix-smbd-libs-avahi.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/samba/samba-0001-fix-smbd-libs-avahi.patch b/package/samba/samba-0001-fix-smbd-libs-avahi.patch
new file mode 100644
index 0000000000..6624f57f6c
--- /dev/null
+++ b/package/samba/samba-0001-fix-smbd-libs-avahi.patch
@@ -0,0 +1,17 @@
+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>
+
+diff -Nura samba-3.6.16.orig/source3/Makefile.in samba-3.6.16/source3/Makefile.in
+--- samba-3.6.16.orig/source3/Makefile.in 2013-06-21 08:12:39.995871935 -0300
++++ samba-3.6.16/source3/Makefile.in 2013-06-21 08:13:17.778103805 -0300
+@@ -1783,7 +1783,7 @@
+ $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
+ $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
+ $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
+- $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
++ $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS)
+
+ bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
+ @echo Linking $@
OpenPOWER on IntegriCloud