Skip to contentSkip to conversation

Avoid the warnings about the redefinition of LUA_USE_DLOPEN, when BR2_PACKAGE_LUA_INTERPRETER_READLINE is set.

PATCH New Gustavo Zacarias 2 participants 2 messages Feb 17, 2012 – Feb 19, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Avoid the warnings about the redefinition of LUA_USE_DLOPEN, when BR2_PACKAGE_LUA_INTERPRETER_READLINE is set.

From: Francois Perrad <[email protected]>

See in src/luaconf.h lines 36-40

---
 package/lua/lua.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
package/lua/lua.mk +2 -2
index 1dabedf..30e95b4 100644
@@ -9,7 +9,7 @@ LUA_SITE = http://www.lua.org/ftp
 LUA_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
-	LUA_MYCFLAGS += -fPIC -DLUA_USE_DLOPEN
+	LUA_MYCFLAGS += -fPIC
 	LUA_MYLIBS += -ldl
 endif
 
@@ -18,7 +18,7 @@ ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y)
 	LUA_MYLIBS += -lreadline -lhistory -lncurses
 	LUA_MYCFLAGS += -DLUA_USE_LINUX
 else
-	LUA_MYCFLAGS += -DLUA_USE_POSIX
+	LUA_MYCFLAGS += -DLUA_USE_POSIX -DLUA_USE_DLOPEN
 endif
 
 HOST_LUA_DEPENDENCIES =
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Avoid the warnings about the redefinition of LUA_USE_DLOPEN, when BR2_PACKAGE_LUA_INTERPRETER_READLINE is set.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> From: Francois Perrad <[email protected]> Gustavo> See in src/luaconf.h lines 36-40

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard