Initial commit
This commit is contained in:
83
lua/path64.patch
Normal file
83
lua/path64.patch
Normal file
@@ -0,0 +1,83 @@
|
||||
diff -ruNp lua-5.1.5/Makefile lua-5.1.5.new/Makefile
|
||||
--- lua-5.1.5/Makefile 2012-02-10 13:50:23.000000000 +0400
|
||||
+++ lua-5.1.5.new/Makefile 2023-11-07 01:55:13.408377728 +0300
|
||||
@@ -9,16 +9,16 @@ PLAT= none
|
||||
|
||||
# Where to install. The installation starts in the src and doc directories,
|
||||
# so take care if INSTALL_TOP is not an absolute path.
|
||||
-INSTALL_TOP= /usr/local
|
||||
+INSTALL_TOP= /usr
|
||||
INSTALL_BIN= $(INSTALL_TOP)/bin
|
||||
INSTALL_INC= $(INSTALL_TOP)/include
|
||||
-INSTALL_LIB= $(INSTALL_TOP)/lib
|
||||
+INSTALL_LIB= $(INSTALL_TOP)/lib64
|
||||
INSTALL_MAN= $(INSTALL_TOP)/man/man1
|
||||
#
|
||||
# You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
|
||||
# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
|
||||
INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
|
||||
-INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
|
||||
+INSTALL_CMOD= $(INSTALL_TOP)/lib64/lua/$V
|
||||
|
||||
# How to install. If your install program does not support "-p", then you
|
||||
# may have to run ranlib on the installed liblua.a (do "make ranlib").
|
||||
diff -ruNp lua-5.1.5/etc/lua.pc lua-5.1.5.new/etc/lua.pc
|
||||
--- lua-5.1.5/etc/lua.pc 2012-02-10 13:50:30.000000000 +0400
|
||||
+++ lua-5.1.5.new/etc/lua.pc 2023-11-07 01:55:13.408377728 +0300
|
||||
@@ -8,17 +8,17 @@ V= 5.1
|
||||
R= 5.1.5
|
||||
|
||||
# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
|
||||
-prefix= /usr/local
|
||||
+prefix= /usr
|
||||
INSTALL_BIN= ${prefix}/bin
|
||||
INSTALL_INC= ${prefix}/include
|
||||
-INSTALL_LIB= ${prefix}/lib
|
||||
+INSTALL_LIB= ${prefix}/lib64
|
||||
INSTALL_MAN= ${prefix}/man/man1
|
||||
INSTALL_LMOD= ${prefix}/share/lua/${V}
|
||||
-INSTALL_CMOD= ${prefix}/lib/lua/${V}
|
||||
+INSTALL_CMOD= ${prefix}/lib64/lua/${V}
|
||||
|
||||
# canonical vars
|
||||
exec_prefix=${prefix}
|
||||
-libdir=${exec_prefix}/lib
|
||||
+libdir=${exec_prefix}/lib64
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: Lua
|
||||
diff -ruNp lua-5.1.5/src/Makefile lua-5.1.5.new/src/Makefile
|
||||
--- lua-5.1.5/src/Makefile 2012-02-14 00:41:22.000000000 +0400
|
||||
+++ lua-5.1.5.new/src/Makefile 2023-11-07 02:04:00.088404650 +0300
|
||||
@@ -8,14 +8,14 @@
|
||||
PLAT= none
|
||||
|
||||
CC= gcc
|
||||
-CFLAGS= -O2 -Wall $(MYCFLAGS)
|
||||
+CFLAGS= $(SLKCFLAGS) $(MYCFLAGS)
|
||||
AR= ar rcu
|
||||
RANLIB= ranlib
|
||||
RM= rm -f
|
||||
LIBS= -lm $(MYLIBS)
|
||||
|
||||
MYCFLAGS=
|
||||
-MYLDFLAGS=
|
||||
+MYLDFLAGS=$(SLKLDFLAGS)
|
||||
MYLIBS=
|
||||
|
||||
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
|
||||
diff -ruNp lua-5.1.5/src/luaconf.h lua-5.1.5.new/src/luaconf.h
|
||||
--- lua-5.1.5/src/luaconf.h 2008-02-11 19:25:08.000000000 +0300
|
||||
+++ lua-5.1.5.new/src/luaconf.h 2023-11-07 01:55:13.409377728 +0300
|
||||
@@ -94,9 +94,9 @@
|
||||
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
|
||||
|
||||
#else
|
||||
-#define LUA_ROOT "/usr/local/"
|
||||
+#define LUA_ROOT "/usr"
|
||||
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
|
||||
-#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
||||
+#define LUA_CDIR LUA_ROOT "lib64/lua/5.1/"
|
||||
#define LUA_PATH_DEFAULT \
|
||||
"./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
|
||||
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
|
||||
Reference in New Issue
Block a user