lua: fix non-shared library build
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 11 Mar 2012 14:24:56 +0000 (15:24 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 13 Mar 2012 13:17:09 +0000 (14:17 +0100)
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>
package/lua/lua.mk

index 30e95b4575707a522ffe3e11b296a61060b28bd4..aa0b4bf3cce18090553c07740a63233e1cc9d657 100644 (file)
@@ -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