1 Patch to src/luaconf.h is to adjust lua's default path for where it
2 looks for .lua and lua related .so's
3 OI-specific: If GCC hides symbols luac and lua binary can't be compiled.
5 --- src/lua.h.~1~ Fri Apr 20 06:18:26 2012
6 +++ src/lua.h Tue Oct 16 16:37:24 2012
19 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 ******************************************************************************/
28 --- src/lualib.h.~1~ Thu Dec 8 04:11:37 2011
29 +++ src/lualib.h Tue Oct 16 16:34:40 2012
42 #define lua_assert(x) ((void)0)
50 --- src/lauxlib.h.~1~ Tue Nov 29 07:55:08 2011
51 +++ src/lauxlib.h Tue Oct 16 16:34:40 2012
74 --- src/luaconf.h.~1~ 2013-03-17 01:10:18.000000000 +0400
75 +++ src/luaconf.h 2014-07-10 09:54:41.072127770 +0400
79 #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
80 -#define LUA_ROOT "/usr/local/"
81 +#define LUA_ROOT "/usr/"
82 #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
83 #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
84 #define LUA_PATH_DEFAULT \
87 #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
88 defined(__ELF__) /* { */
89 -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
90 +#define LUAI_FUNC extern
91 #define LUAI_DDEC LUAI_FUNC
92 #define LUAI_DDEF /* empty */