platform: Add boxdd

This commit is contained in:
世界
2026-07-13 11:23:59 +08:00
parent 2e751ae2c7
commit a8a69228d8
37 changed files with 7256 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
package build_shared
import "strings"
func LinkerFlags(version string, debug bool) string {
flags := []string{
"-X github.com/sagernet/sing-box/constant.Version=" + version,
"-X internal/godebug.defaultGODEBUG=multipathtcp=0",
"-checklinkname=0",
}
if !debug {
flags = append(flags, "-s", "-w", "-buildid=")
}
return strings.Join(flags, " ")
}