package/luaposix: select bit32 based on lua ABI version 5.1
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 25 May 2020 00:48:41 +0000 (18:48 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 27 Jul 2020 20:30:59 +0000 (22:30 +0200)
Since the bit32 module is needed by all lua ABI 5.1 providers we can
select based on the lua ABI version instead of both lua 5.1 and luajit.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/luaposix/Config.in

index cedb3a665403f23c56509e1e313f61e48bf924c6..85943f99158a95698138d398052b822f8858a6c0 100644 (file)
@@ -3,7 +3,7 @@ config BR2_PACKAGE_LUAPOSIX
        # "bit32" is included in Lua 5.2+. luajit has an equivalent
        # "bit" module, but since it has a different name, luaposix
        # doesn't find it.
-       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 || BR2_PACKAGE_LUAJIT # runtime
+       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 # runtime
        help
          This is a POSIX binding for LuaJIT, Lua 5.1 through 5.4;
          like most libraries it simply binds to C APIs on the