package/libwebsockets: add fsmount support
authorAdam Duskett <Aduskett@gmail.com>
Sun, 26 Jul 2020 02:29:01 +0000 (19:29 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 07:03:53 +0000 (09:03 +0200)
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libwebsockets/libwebsockets.mk

index a3fc12bcd4a205cdb653a5de24a1edf9b749c3ec..8e6d02205af980e11546812f7351810d90e196ec 100644 (file)
@@ -11,7 +11,6 @@ LIBWEBSOCKETS_LICENSE_FILES = LICENSE
 LIBWEBSOCKETS_DEPENDENCIES = zlib
 LIBWEBSOCKETS_INSTALL_STAGING = YES
 LIBWEBSOCKETS_CONF_OPTS = \
-       -DLWS_WITH_FSMOUNT=OFF \
        -DLWS_WITHOUT_TESTAPPS=ON \
        -DLWS_IPV6=ON \
        -DLWS_UNIX_SOCK=ON \
@@ -56,6 +55,13 @@ else
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_GLIB=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
+LIBWEBSOCKETS_DEPENDENCIES += util-linux
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_FSMOUNT=ON
+else
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_FSMOUNT=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUV),y)
 LIBWEBSOCKETS_DEPENDENCIES += libuv
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_LIBUV=ON