summaryrefslogtreecommitdiffstats
path: root/lua-5.1.4-lunatic.patch
diff options
context:
space:
mode:
authorTim Niemueller <timn@fedoraproject.org>2010-05-09 10:46:41 +0000
committerTim Niemueller <timn@fedoraproject.org>2010-05-09 10:46:41 +0000
commite9fe075726cbfcf773a4440ee1c07e4520e123ab (patch)
tree82d99b43b3ae452421871ca43e4370182ca4ed01 /lua-5.1.4-lunatic.patch
parent12be6f1731737ae5fa384247936212f4eff4effb (diff)
downloadlua-5_1_4-5_fc14.tar.gz
lua-5_1_4-5_fc14.tar.xz
lua-5_1_4-5_fc14.zip
Add patch regarding dlopen flags to support lunatic (Lua-Python bridge)lua-5_1_4-5_fc14
Diffstat (limited to 'lua-5.1.4-lunatic.patch')
-rw-r--r--lua-5.1.4-lunatic.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua-5.1.4-lunatic.patch b/lua-5.1.4-lunatic.patch
new file mode 100644
index 0000000..70315b2
--- /dev/null
+++ b/lua-5.1.4-lunatic.patch
@@ -0,0 +1,11 @@
+--- src/loadlib.c.orig 2010-02-09 16:58:47.000000000 -0600
++++ src/loadlib.c 2010-02-09 16:59:12.000000000 -0600
+@@ -66,7 +66,7 @@
+
+
+ static void *ll_load (lua_State *L, const char *path) {
+- void *lib = dlopen(path, RTLD_NOW);
++ void *lib = dlopen(path, RTLD_NOW|RTLD_GLOBAL);
+ if (lib == NULL) lua_pushstring(L, dlerror());
+ return lib;
+ }