[vlc-commits] contrib: lua: don't build dynamic libraries loading code

Rafaël Carré git at videolan.org
Fri May 17 13:39:39 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu May  9 15:32:35 2013 +0200| [2b82c9fd792bea37716077257f83a9a5c377b372] | committer: Rafaël Carré

contrib: lua: don't build dynamic libraries loading code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b82c9fd792bea37716077257f83a9a5c377b372
---

 contrib/src/lua/no-dylibs.patch |   25 +++++++++++++++++++++++++
 contrib/src/lua/rules.mak       |    1 +
 2 files changed, 26 insertions(+)

diff --git a/contrib/src/lua/no-dylibs.patch b/contrib/src/lua/no-dylibs.patch
new file mode 100644
index 0000000..e925f2d
--- /dev/null
+++ b/contrib/src/lua/no-dylibs.patch
@@ -0,0 +1,25 @@
+--- lua/src/luaconf.h.orig	2013-05-09 15:29:05.797554571 +0200
++++ lua/src/luaconf.h	2013-05-09 15:29:10.337554380 +0200
+@@ -42,7 +42,7 @@
+ 
+ #if defined(LUA_USE_MACOSX)
+ #define LUA_USE_POSIX
+-#define LUA_DL_DYLD		/* does not need extra library */
++//#define LUA_DL_DYLD		/* does not need extra library */
+ #endif
+ 
+ 
+@@ -691,11 +691,11 @@
+ ** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
+ */
+ #if defined(LUA_USE_DLOPEN)
+-#define LUA_DL_DLOPEN
++//#define LUA_DL_DLOPEN
+ #endif
+ 
+ #if defined(LUA_WIN)
+-#define LUA_DL_DLL
++//#define LUA_DL_DLL
+ #endif
+ 
+ 
diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index acbc87d..52f06f9 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -35,6 +35,7 @@ $(TARBALLS)/lua-$(LUA_VERSION).tar.gz:
 lua: lua-$(LUA_VERSION).tar.gz .sum-lua
 	$(UNPACK)
 	$(APPLY) $(SRC)/lua/lua-noreadline.patch
+	$(APPLY) $(SRC)/lua/no-dylibs.patch
 	$(APPLY) $(SRC)/lua/luac-32bits.patch
 	$(APPLY) $(SRC)/lua/no-localeconv.patch
 ifdef HAVE_DARWIN_OS



More information about the vlc-commits mailing list