Skip to content

Commit 9a8fbce

Browse files
committed
dnsdist: use luajit on luajit archs except aarch64; lua on other archs
Work around a bug in luajit for aarch64 by using lua, so to avoid a SIGILL at runtime Signed-off-by: Daniele Bonomi <github@notmycloud.com>
1 parent e61d672 commit 9a8fbce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

net/dnsdist/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ define Package/dnsdist/Default
3535
+libatomic \
3636
+libcap \
3737
+libstdcpp \
38-
@HAS_LUAJIT_ARCH +luajit
38+
$(if $(and $(HAS_LUAJIT_ARCH),$(filter-out aarch64,$(ARCH))), +luajit, +liblua)
3939
URL:=https://dnsdist.org/
4040
VARIANT:=$(1)
4141
PROVIDES:=dnsdist
@@ -147,7 +147,7 @@ TARGET_CXXFLAGS+=-Os -fvisibility=hidden -flto -fno-ipa-cp -DNDEBUG \
147147

148148
CONFIGURE_ARGS+= \
149149
--with-pic \
150-
--with-lua=luajit \
150+
$(if $(and $(HAS_LUAJIT_ARCH),$(filter-out aarch64,$(ARCH))),--with-lua=luajit,--with-lua) \
151151
--with-libcap \
152152
--without-xsk \
153153
$(if $(call IsEnabled,DNSDIST_PIE),,--disable-hardening) \

0 commit comments

Comments
 (0)