aboutsummaryrefslogtreecommitdiff
path: root/all_in_one.patch
diff options
context:
space:
mode:
Diffstat (limited to 'all_in_one.patch')
-rw-r--r--all_in_one.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/all_in_one.patch b/all_in_one.patch
new file mode 100644
index 0000000..234bcb7
--- /dev/null
+++ b/all_in_one.patch
@@ -0,0 +1,38 @@
1--- "binary/all_in_one.orig" 2024-09-23 13:31:16.489277700 -0500
2+++ "binary/all_in_one" 2024-09-23 13:31:14.032152500 -0500
3@@ -406,27 +406,6 @@
4 fd:write(reindent_c(table.concat(out, "\n")))
5 fd:close()
6
7- assert(deps.check_lua_incdir(cfg.variables))
8- assert(deps.check_lua_libdir(cfg.variables))
9-
10- cmd = table.concat(filter_in(nonnull, {
11- CC, "-o", TARGET_DIR .. "/" .. program_name .. ".exe",
12- "-I", cfg.variables.LUA_INCDIR,
13- if_platform("unix", "-rdynamic"),
14- "-Os",
15- c_filename,
16- "-L", cfg.variables.LUA_LIBDIR,
17- table.concat(a_files, " "),
18- --if_platform("unix", cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a")),
19- --if_platform("windows", "mingw/liblua.a"), -- FIXME
20- cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"),
21- if_platform("unix", "-ldl"),
22- if_platform("unix", "-lpthread"),
23- if_platform("windows", "-mconsole -mwindows"),
24- "-lm"
25- }), " ")
26- print(cmd)
27- os.execute(cmd)
28 end
29
30 --------------------------------------------------------------------------------
31@@ -500,4 +479,6 @@
32 generate(MAIN_PROGRAM, "src", { EXCLUDE, "^bin/?" })
33 end
34
35-main()
36+cfg.init()
37+fs.init()
38+generate(MAIN_PROGRAM, "src", {EXCLUDE, "^bin/?"})