The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / samba / 0001-fix-smbd-libs-avahi.patch
1 Expliticly link with -lpthread if smbd is compiled with
2 avahi support. Otherwise the binary will fail to run.
3
4 Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
5
6 diff -Nura samba-3.6.16.orig/source3/Makefile.in samba-3.6.16/source3/Makefile.in
7 --- samba-3.6.16.orig/source3/Makefile.in       2013-06-21 08:12:39.995871935 -0300
8 +++ samba-3.6.16/source3/Makefile.in    2013-06-21 08:13:17.778103805 -0300
9 @@ -1783,7 +1783,7 @@
10                 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
11                 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
12                 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
13 -               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
14 +               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS)
15
16  bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
17         @echo Linking $@