]> git.sesse.net Git - vlc/commitdiff
contrib: lua: don't build dynamic libraries loading code
authorRafaël Carré <funman@videolan.org>
Thu, 9 May 2013 13:32:35 +0000 (15:32 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 17 May 2013 11:39:30 +0000 (13:39 +0200)
contrib/src/lua/no-dylibs.patch [new file with mode: 0644]
contrib/src/lua/rules.mak

diff --git a/contrib/src/lua/no-dylibs.patch b/contrib/src/lua/no-dylibs.patch
new file mode 100644 (file)
index 0000000..e925f2d
--- /dev/null
@@ -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
index acbc87dd203685c84c5afaaa15f42f93941a69e5..52f06f93f26075f7bbc421f2e8c16304178a66f6 100644 (file)
@@ -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