package/luajit: drop static build handling
authorBaruch Siach <baruch@tkos.co.il>
Thu, 12 Nov 2020 18:34:45 +0000 (20:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 13 Nov 2020 18:14:09 +0000 (19:14 +0100)
Static build of luajit is disabled since commit b2e8f28efac
("package/luajit: disable for static build"). Remove the related
BUILDMODE handling as well.

Cc: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/luajit/luajit.mk

index 68e6af4f5e7c48fd5f7a0655b7a432b9454dca82..defa21dd3ffda81d46dbdf2cf9051bebd54a235b 100644 (file)
@@ -17,12 +17,6 @@ ifeq ($(BR2_PACKAGE_LUAJIT_COMPAT52),y)
 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
@@ -50,7 +44,7 @@ define LUAJIT_BUILD_CMDS
                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