Commit 560e7db3 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

efl/libecore: fix build with gcrypt

When building with gnutls, libecore also needs libgcrypt.

Fixes:

  http://autobuild.buildroot.org/results/4da454d6414cf8f4e638defae9b793fb46a0a072/build-end.log



While we're at it, also explicit the --enable-openssl /
--disable-openssl depending on whether openssl is available or not.

[Peter: only enable gnutls support when both gnutls and gcrypt are enabled]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent a2447914
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -36,10 +36,16 @@ endif

ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBECORE_DEPENDENCIES += openssl
LIBECORE_CONF_OPT += --enable-openssl
else
LIBECORE_CONF_OPT += --disable-openssl
endif

ifeq ($(BR2_PACKAGE_GNUTLS),y)
LIBECORE_DEPENDENCIES += gnutls
ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
LIBECORE_DEPENDENCIES += gnutls libgcrypt
LIBECORE_CONF_OPT += --enable-gnutls --with-libgcrypt-prefix=$(STAGING_DIR)/usr
else
LIBECORE_CONF_OPT += --disable-gnutls
endif

ifeq ($(BR2_PACKAGE_LIBCURL),y)