mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
luaposix: remove eglibc remnants
As a side-effect, this adds the getlogin function back when using glibc. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luaposix
|
||||
PKG_VERSION:=v33.2.1
|
||||
PKG_RELEASE:=5
|
||||
PKG_RELEASE:=6
|
||||
|
||||
PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/luaposix/luaposix/archive/
|
||||
@@ -49,13 +49,6 @@ ifeq ($(CONFIG_USE_MUSL),y)
|
||||
TARGET_CFLAGS += -D_XOPEN_REALTIME=1
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_USE_GLIBC),)
|
||||
ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
|
||||
TARGET_CFLAGS += -DNO_GETLOGIN
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
define Package/luaposix/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua/posix
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/posix/.libs/posix.so $(1)/usr/lib/lua
|
||||
|
||||
Reference in New Issue
Block a user