When glibc was bumped to version 2.39 in commit
b5680f53d6
it removed the deprecated
libcrypt support.
As glibc's libcrypt was providing luaposix's libcrypt dependency this
broke any luaposix build using glibc version 2.39.
To fix this select the libxcrypt dependency to luaposix when using a
glibc toolchain and add the dependency if selected.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[yann.morin.1998@free.fr: use more traditional ifeq-endif block]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
35 lines
895 B
Makefile
35 lines
895 B
Makefile
################################################################################
|
|
#
|
|
# luaposix
|
|
#
|
|
################################################################################
|
|
|
|
LUAPOSIX_VERSION = 36.2.1
|
|
LUAPOSIX_SITE = $(call github,luaposix,luaposix,v$(LUAPOSIX_VERSION))
|
|
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 \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LUA_INCDIR=$(STAGING_DIR)/usr/include \
|
|
)
|
|
endef
|
|
|
|
define LUAPOSIX_INSTALL_TARGET_CMDS
|
|
(cd $(@D); \
|
|
$(LUA_RUN) build-aux/luke install \
|
|
INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|