-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.patch
More file actions
55 lines (42 loc) · 1.57 KB
/
Copy pathbuild.patch
File metadata and controls
55 lines (42 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff -uprN lua-5.5.0.old/src/luaconf.h lua-5.5.0/src/luaconf.h
--- lua-5.5.0.old/src/luaconf.h 2025-12-15 13:44:40.000000000 +0300
+++ lua-5.5.0/src/luaconf.h 2026-02-08 02:46:07.116399878 +0300
@@ -53,7 +53,6 @@
#if defined(LUA_USE_WINDOWS)
-#define LUA_DL_DLL /* enable support for DLL */
#define LUA_USE_C89 /* broadly, Windows is C89 */
#endif
@@ -69,21 +68,18 @@
*/
#if defined(LUA_USE_LINUX)
#define LUA_USE_POSIX
-#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
#define LUA_READLINELIB "libreadline.so"
#endif
#if defined(LUA_USE_MACOSX)
#define LUA_USE_POSIX
-#define LUA_USE_DLOPEN /* macOS does not need -ldl */
#define LUA_READLINELIB "libedit.dylib"
#endif
#if defined(LUA_USE_IOS)
#define LUA_USE_POSIX
-#define LUA_USE_DLOPEN
#endif
diff -uprN lua-5.5.0.old/src/Makefile lua-5.5.0/src/Makefile
--- lua-5.5.0.old/src/Makefile 2025-07-07 03:19:14.000000000 +0300
+++ lua-5.5.0/src/Makefile 2026-02-08 02:51:17.686297782 +0300
@@ -121,15 +121,14 @@ ios:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_IOS"
Linux linux:
- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl"
+ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS=""
Darwin macos macosx:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" SYSLIBS="-lreadline"
mingw:
- $(MAKE) "LUA_A=lua55.dll" "LUA_T=lua.exe" \
- "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
- "SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
+ $(MAKE) "LUA_T=lua.exe" \
+ "SYSCFLAGS=" "SYSLIBS=" "SYSLDFLAGS=" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
posix: