summaryrefslogtreecommitdiff
path: root/print/luatex
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2010-09-13 04:12:48 +0000
committerminskim <minskim@pkgsrc.org>2010-09-13 04:12:48 +0000
commit9da605ceaf8bf58fdc16e4d5eca21166addacd04 (patch)
treeb1ea497e13b1f7e11925653b6a73856c22ac4440 /print/luatex
parenta615fc4d55b6f02564d0d364a287aa9d794235fb (diff)
downloadpkgsrc-9da605ceaf8bf58fdc16e4d5eca21166addacd04.tar.gz
Add a patch to enable texlua to load lang/lua's modules.
Diffstat (limited to 'print/luatex')
-rw-r--r--print/luatex/patches/patch-ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/print/luatex/patches/patch-ac b/print/luatex/patches/patch-ac
new file mode 100644
index 00000000000..f46f4f1d1c5
--- /dev/null
+++ b/print/luatex/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2010/09/13 04:12:48 minskim Exp $
+
+--- texk/web2c/luatexdir/lua51/luaconf.h.orig 2010-09-09 09:10:53.000000000 +0000
++++ texk/web2c/luatexdir/lua51/luaconf.h
+@@ -100,7 +100,9 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
++#ifndef LUA_ROOT
+ #define LUA_ROOT "/usr/local/"
++#endif
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \
+@@ -189,7 +191,7 @@
+ #define LUAI_DATA /* empty */
+
+ #elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
+- defined(__ELF__)
++ defined(__ELF__) && !defined(__sun__)
+ #define LUAI_FUNC __attribute__((visibility("hidden"))) extern
+ #define LUAI_DATA LUAI_FUNC
+