mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00: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:
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user