LUAJIT_XCFLAGS += -DLUAJIT_ENABLE_LUA52COMPAT
endif
-ifeq ($(BR2_STATIC_LIBS),y)
-LUAJIT_BUILDMODE = static
-else
-LUAJIT_BUILDMODE = dynamic
-endif
-
# The luajit build procedure requires the host compiler to have the
# same bitness as the target compiler. Therefore, on a x86 build
# machine, we can't build luajit for x86_64, which is checked in
HOST_CC="$(LUAJIT_HOST_CC)" \
HOST_CFLAGS="$(HOST_CFLAGS)" \
HOST_LDFLAGS="$(HOST_LDFLAGS)" \
- BUILDMODE=$(LUAJIT_BUILDMODE) \
+ BUILDMODE=dynamic \
XCFLAGS=$(LUAJIT_XCFLAGS) \
-C $(@D) amalg
endef