package/turbolua: Fix optional openssl dependency
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Fri, 13 May 2016 10:00:24 +0000 (12:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 13 May 2016 20:09:52 +0000 (22:09 +0200)
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 <m.niestroj@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/turbolua/turbolua.mk

index cf66e70ad1b9f4b5fd0078b35359afb58e27a93b..fe6db3184cf4d903b6f205627c49cd0fe57d1148 100644 (file)
@@ -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