From 14011b1e81b06e094bc95ad4f45248190698d5d4 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 31 Jan 2009 07:18:13 +0000 Subject: fix lua compile with eglibc selected and utmp support disabled git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14298 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/lua/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'package/lua/Makefile') diff --git a/package/lua/Makefile b/package/lua/Makefile index aff52c3f2..eff31390a 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -86,6 +86,12 @@ endef TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) +ifneq ($(CONFIG_USE_EGLIBC),) + ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),) + TARGET_CFLAGS += -DNO_GETLOGIN + endif +endif + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CROSS)gcc" \ -- cgit v1.2.3