mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 23:07:44 +00:00
tool/gocross: make all Windows DLLs build with static libgcc
In this commit, we have updated the build process for our Windows DLLs to link statically with libgcc, ensuring our Windows DLLs are self-contained. Updates #10617 Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
parent
0957258f84
commit
5e3126f510
@ -96,6 +96,7 @@ func autoflagsForTest(argv []string, env *Environment, goroot, nativeGOOS, nativ
|
||||
cgo = true
|
||||
buildFlags = append(buildFlags, "-buildmode=c-shared")
|
||||
ldflags = append(ldflags, "-H", "windows", "-s")
|
||||
cgoLdflags = append(cgoLdflags, "-static")
|
||||
var mingwArch string
|
||||
switch targetArch {
|
||||
case "amd64":
|
||||
|
Loading…
x
Reference in New Issue
Block a user