File tree Expand file tree Collapse file tree
cmd/internal/build_libbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ func buildAndroid() {
112112 args = append (args , debugFlags ... )
113113 }
114114
115+ args = append (args , "-ldflags" , "-checklinkname=0" )
116+
115117 tags := append (sharedTags , memcTags ... )
116118 if debugEnabled {
117119 tags = append (tags , debugTags ... )
Original file line number Diff line number Diff line change 1+ package libbox
2+
3+ import (
4+ "os"
5+ _ "unsafe"
6+ )
7+
8+ // https://github.com/SagerNet/sing-box/issues/3233
9+ // https://github.com/golang/go/issues/70508
10+ // https://github.com/tailscale/tailscale/issues/13452
11+
12+ //go:linkname checkPidfdOnce os.checkPidfdOnce
13+ var checkPidfdOnce func () error
14+
15+ func init () {
16+ checkPidfdOnce = func () error {
17+ return os .ErrInvalid
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments