xref: /OK3568_Linux_fs/buildroot/package/lua/5.1.5/0001-root-path.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Adjust installation location to /usr.
2
3Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
4
5Index: b/etc/lua.pc
6===================================================================
7--- a/etc/lua.pc
8+++ b/etc/lua.pc
9@@ -8,7 +8,7 @@
10 R= 5.1.5
11
12 # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
13-prefix= /usr/local
14+prefix= /usr
15 INSTALL_BIN= ${prefix}/bin
16 INSTALL_INC= ${prefix}/include
17 INSTALL_LIB= ${prefix}/lib
18Index: b/src/luaconf.h
19===================================================================
20--- a/src/luaconf.h
21+++ b/src/luaconf.h
22@@ -94,7 +94,7 @@
23 	".\\?.dll;"  LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
24
25 #else
26-#define LUA_ROOT	"/usr/local/"
27+#define LUA_ROOT	"/usr/"
28 #define LUA_LDIR	LUA_ROOT "share/lua/5.1/"
29 #define LUA_CDIR	LUA_ROOT "lib/lua/5.1/"
30 #define LUA_PATH_DEFAULT  \
31