diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-05-03 11:59:47 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-05-03 11:59:47 -0400 |
commit | 6f9d42bd4e08e0d567ce41d127848fd46c63787e (patch) | |
tree | 70508633159c22acf8c854158c325b375fdb1606 | |
parent | c07e6812fff52424baa1ebf6117bb3fb11636083 (diff) | |
download | luarocks-6f9d42bd4e08e0d567ce41d127848fd46c63787e.tar.gz luarocks-6f9d42bd4e08e0d567ce41d127848fd46c63787e.tar.bz2 luarocks-6f9d42bd4e08e0d567ce41d127848fd46c63787e.zip |
Fix build of Windows binary
Fixes #1412.
-rw-r--r-- | binary/Makefile.windows | 2 | ||||
-rwxr-xr-x | binary/all_in_one | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/binary/Makefile.windows b/binary/Makefile.windows index 8dbbc270..3e540279 100644 --- a/binary/Makefile.windows +++ b/binary/Makefile.windows | |||
@@ -8,7 +8,7 @@ OPENSSL_PLATFORM=mingw | |||
8 | # Versions of dependencies | 8 | # Versions of dependencies |
9 | LIBLUA_VERSION=5.4.3 | 9 | LIBLUA_VERSION=5.4.3 |
10 | OPENSSL_VERSION=1.0.2o | 10 | OPENSSL_VERSION=1.0.2o |
11 | ZLIB_VERSION=1.2.11 | 11 | ZLIB_VERSION=1.2.12 |
12 | BZIP2_VERSION=1.0.6 | 12 | BZIP2_VERSION=1.0.6 |
13 | 13 | ||
14 | WINDOWS_DEPS_DIR=windows-deps-$(MINGW_PREFIX) | 14 | WINDOWS_DEPS_DIR=windows-deps-$(MINGW_PREFIX) |
diff --git a/binary/all_in_one b/binary/all_in_one index ca5ee49d..953fb227 100755 --- a/binary/all_in_one +++ b/binary/all_in_one | |||
@@ -426,7 +426,7 @@ local function generate(main_program, dir, skip) | |||
426 | cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"), | 426 | cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"), |
427 | if_platform("unix", "-ldl"), | 427 | if_platform("unix", "-ldl"), |
428 | if_platform("unix", "-lpthread"), | 428 | if_platform("unix", "-lpthread"), |
429 | if_platform("windows", "-mwindows"), | 429 | if_platform("windows", "-mconsole -mwindows"), |
430 | "-lm" | 430 | "-lm" |
431 | }), " ") | 431 | }), " ") |
432 | print(cmd) | 432 | print(cmd) |