diff --git a/package/luaposix/Config.in b/package/luaposix/Config.in index 85943f9915..bd2105743d 100644 --- a/package/luaposix/Config.in +++ b/package/luaposix/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_LUAPOSIX # "bit" module, but since it has a different name, luaposix # doesn't find it. select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 # runtime + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC 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 diff --git a/package/luaposix/luaposix.mk b/package/luaposix/luaposix.mk index d09a1bcd1d..c5d98fbbd4 100644 --- a/package/luaposix/luaposix.mk +++ b/package/luaposix/luaposix.mk @@ -10,6 +10,10 @@ LUAPOSIX_LICENSE = MIT LUAPOSIX_LICENSE_FILES = LICENSE LUAPOSIX_DEPENDENCIES = luainterpreter host-lua +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +LUAPOSIX_DEPENDENCIES += libxcrypt +endif + define LUAPOSIX_BUILD_CMDS (cd $(@D); \ $(LUA_RUN) build-aux/luke \