Skip to contentSkip to conversation

package/turbolua: Fix optional openssl dependency

PATCH New Marcin Niestroj 2 participants 2 messages May 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/turbolua/turbolua.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/turbolua/turbolua.mk +7 -1
index cf66e70..fe6db31 100644
@@ -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
Signature · 1 line
2.8.2
#1 lore raw

PATCH 1/1 package/turbolua: Fix optional openssl dependency

Hello,

Quoted 10 lines · Marcin Niestroj

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.

---
 package/turbolua/turbolua.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com