summaryrefslogtreecommitdiff
path: root/core/src/cli
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-21 22:22:17 +0800
committerGitHub <[email protected]>2026-02-21 22:22:17 +0800
commitabe908e748c85ed30adf95df7e070f065e8f5363 (patch)
tree19498f2e6e3404e5ed79b4e3e667283fbea40b97 /core/src/cli
parent23c62e6d3d3b91133221abe4946a5aacc298a836 (diff)
parentb59a11005353e771c35d001991ad106d7cb57684 (diff)
Merge pull request #7333 from luadebug/sign2
add winos.file_signature function to retrieve file signature information
Diffstat (limited to 'core/src/cli')
-rw-r--r--core/src/cli/xmake.lua2
-rwxr-xr-xcore/src/cli/xmake.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/cli/xmake.lua b/core/src/cli/xmake.lua
index 2e4b1aea9..98e86b128 100644
--- a/core/src/cli/xmake.lua
+++ b/core/src/cli/xmake.lua
@@ -29,7 +29,7 @@ target("cli")
-- add links
if is_plat("windows") then
- add_syslinks("ws2_32", "advapi32", "shell32")
+ add_syslinks("ws2_32", "advapi32", "shell32", "wintrust", "crypt32")
add_ldflags("/export:malloc", "/export:free", "/export:memmove")
elseif is_plat("android") then
add_syslinks("m", "c")
diff --git a/core/src/cli/xmake.sh b/core/src/cli/xmake.sh
index 12fffe1af..6ae33ef16 100755
--- a/core/src/cli/xmake.sh
+++ b/core/src/cli/xmake.sh
@@ -19,7 +19,7 @@ target "cli"
if is_plat "macosx" && is_config "runtime" "luajit"; then
add_ldflags "-all_load" "-pagezero_size 10000" "-image_base 100000000"
elif is_plat "mingw"; then
- add_ldflags "-static-libgcc"
+ add_ldflags "-static-libgcc" "-lwintrust" "-lcrypt32"
fi
# add install files