package/libxmlrpc: add openssl optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 22 Jun 2020 05:47:08 +0000 (07:47 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 22 Jun 2020 09:06:16 +0000 (11:06 +0200)
Without this patch, openssl_abyss is enabled if openssl is built before
libxmlrpc

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libxmlrpc/libxmlrpc.mk

index 54db9f1f89fb83d69cc30c3565a93582fbab9bc8..f9925b74ca1a6fd46b4acd869dac7099f3d7902d 100644 (file)
@@ -39,6 +39,13 @@ ifeq ($(BR2_STATIC_LIBS),y)
 LIBXMLRPC_STATIC_OPTS = SHARED_LIB_TYPE=NONE MUST_BUILD_SHLIB=N
 endif
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBXMLRPC_DEPENDENCIES = host-pkgconf openssl
+LIBXMLRPC_CONF_OPTS = --enable-abyss-openssl
+else
+LIBXMLRPC_CONF_OPTS = --disable-abyss-openssl
+endif
+
 LIBXMLRPC_MAKE_OPTS += $(LIBXMLRPC_STATIC_OPTS)
 LIBXMLRPC_INSTALL_STAGING_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
        DESTDIR=$(STAGING_DIR) install