From 84c700c8d9ec09ad2477e42c933ec091c9085dd8 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Fri, 13 May 2016 12:00:24 +0200 Subject: [PATCH] package/turbolua: Fix optional openssl dependency turbolua fails to build when we have openssl selected, because it didn't mention openssl in the dependency list. Fix build failure by specifying openssl in dependency list when it is selected. Signed-off-by: Marcin Niestroj Signed-off-by: Thomas Petazzoni --- package/turbolua/turbolua.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/turbolua/turbolua.mk b/package/turbolua/turbolua.mk index cf66e70ad1..fe6db3184c 100644 --- a/package/turbolua/turbolua.mk +++ b/package/turbolua/turbolua.mk @@ -12,9 +12,15 @@ TURBOLUA_LICENSE_FILES = LICENSE TURBOLUA_MAKE_OPTS = \ $(TARGET_CONFIGURE_OPTS) \ - SSL=$(if $(BR2_PACKAGE_OPENSSL),openssl,none) \ LUAJIT_VERSION="$(LUAJIT_VERSION)" +ifeq ($(BR2_PACKAGE_OPENSSL),y) +TURBOLUA_MAKE_OPTS += SSL=openssl +TURBOLUA_DEPENDENCIES += openssl +else +TURBOLUA_MAKE_OPTS += SSL=none +endif + define TURBOLUA_BUILD_CMDS $(MAKE) $(TURBOLUA_MAKE_OPTS) -C $(@D) all endef -- 2.30.2