samba: enable mmap for *glibc build and aio (thru -lrt) for everyone
authorKoen Kooi <koen@openembedded.org>
Wed, 4 Aug 2010 09:36:42 +0000 (11:36 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 6 Jul 2015 18:55:18 +0000 (21:55 +0300)
recipes/samba/samba.inc
recipes/samba/samba_3.3.9.bb

index d8df8f1..5c92e82 100644 (file)
@@ -18,6 +18,9 @@ FILES_${PN}     += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat \
 FILES_${PN}-dbg += "${libdir}/vfs/.debug/*.so ${libdir}/charset/.debug/*.so \
                     ${libdir}/auth/.debug/*.so ${libdir}/security/.debug/*.so"
 
+SAMBAMMAP = "no"
+SAMBAMMAP_libc-glibc = "yes"
+
 # The file system settings --foodir=dirfoo and overridden unconditionally
 # in the samba config by --with-foodir=dirfoo - even if the --with is not
 # specified!  Fix that here.  Set the privatedir to /etc/samba/private.
@@ -33,7 +36,9 @@ EXTRA_OECONF='--disable-cups \
               --with-libdir=${libdir} \
               --with-mandir=${mandir} \
               --with-swatdir=${datadir}/swat \
-              samba_cv_struct_timespec=yes'
+              --with-aio-support \
+              samba_cv_struct_timespec=yes \
+              libreplace_cv_HAVE_MMAP=${SAMBAMMAP}'
 
 INITSCRIPT_NAME = "samba"
 # No dependencies, goes in at level 20 (NOTE: take care with the
index 87a7c5e..9f98817 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI += "file://configure-3.3.0.patch;patch=1 \
             file://mtab.patch;patch=1 \
             file://tdbheaderfix.patch;patch=1 "
 
-PR = "r3"
+PR = "r4"
 
 EXTRA_OECONF += "\
        SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \