[Buildroot] [git commit] lua: fix non-shared library build
Peter Korsgaard
jacmet at sunsite.dk
Tue Mar 13 13:17:09 UTC 2012
commit: http://git.buildroot.net/buildroot/commit/?id=d77ff16b11bde9832914224794ca07312711d0bd
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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) <arnout at mind.be>
Acked-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
package/lua/lua.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/package/lua/lua.mk b/package/lua/lua.mk
index 30e95b4..aa0b4bf 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
More information about the buildroot
mailing list