mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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) <arnout@mind.be> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
aa9f6a9b13
commit
d77ff16b11
@@ -10,9 +10,10 @@ LUA_INSTALL_STAGING = YES
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
|
ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
|
||||||
LUA_MYCFLAGS += -fPIC
|
LUA_MYCFLAGS += -fPIC
|
||||||
LUA_MYLIBS += -ldl
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LUA_MYLIBS += -ldl
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y)
|
ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y)
|
||||||
LUA_DEPENDENCIES = readline ncurses
|
LUA_DEPENDENCIES = readline ncurses
|
||||||
LUA_MYLIBS += -lreadline -lhistory -lncurses
|
LUA_MYLIBS += -lreadline -lhistory -lncurses
|
||||||
|
|||||||
Reference in New Issue
Block a user