From: Arnout Vandecappelle (Essensium/Mind) Date: Sun, 11 Mar 2012 14:24:56 +0000 (+0100) Subject: lua: fix non-shared library build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d77ff16b11bde9832914224794ca07312711d0bd;p=buildroot.git lua: fix non-shared library build Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of missing -ldl. dl is used by lua's dynamic module loading. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/lua/lua.mk b/package/lua/lua.mk index 30e95b4575..aa0b4bf3cc 100644 --- a/package/lua/lua.mk +++ b/package/lua/lua.mk @@ -10,9 +10,10 @@ LUA_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y) LUA_MYCFLAGS += -fPIC - LUA_MYLIBS += -ldl endif +LUA_MYLIBS += -ldl + ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y) LUA_DEPENDENCIES = readline ncurses LUA_MYLIBS += -lreadline -lhistory -lncurses