nginx: only build luajit2 if required

On some systems luajit2 will not build. When compiling the nginx
packages it was being pulled in as a dependency even if no
nginx subpackage that requires it was selected and thus building
nginx failed.

This change will only pull in the dependency conditionally.

Signed-off-by: Florian Wagner <florian@wagner-flo.de>
This commit is contained in:
Florian Wagner authored and Christian Marangi committed 2026-10-25 13:36:30 +01:00
1 parent d7d5343b4c
commit e0e531b86c
1 file changed
+1 -1
+1 -1
View File
@@ -233,7 +233,7 @@ endef
define Package/nginx-mod-lua-resty-lrucache
$(call Package/nginx/default)
TITLE:=Nginx Lua OpenResty lrucache module
DEPENDS:=@HAS_LUAJIT_ARCH +luajit2
DEPENDS:=@HAS_LUAJIT_ARCH +PACKAGE_nginx-mod-lua-resty-lrucache:luajit2
endef
define Package/nginx-mod-lua-resty-core