s6-networking: enable SSL if libressl is selected
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Sun, 23 Jul 2017 08:16:02 +0000 (10:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 24 Jul 2017 16:34:22 +0000 (18:34 +0200)
If LibreSSL is selected, enable the associated backend to build the
s6-tls* tools.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/s6-networking/s6-networking.mk

index ffaf8bc2096d930cb4f83a53d66feb7ac892d505..6463f5d80ef8ae2a49a94388df33efa20182b4dc 100644 (file)
@@ -23,6 +23,11 @@ S6_NETWORKING_CONF_OPTS = \
        $(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
        $(SHARED_STATIC_LIBS_OPTS)
 
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+S6_NETWORKING_CONF_OPTS += --enable-ssl=libressl
+S6_NETWORKING_DEPENDENCIES = libressl
+endif
+
 define S6_NETWORKING_CONFIGURE_CMDS
        (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_NETWORKING_CONF_OPTS))
 endef