Skip to content

Commit e90424c

Browse files
committed
make: cgo max page size hint
1 parent fc77270 commit e90424c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ XGO_LDFLAGS='-s -w -X main.version=$(COMMIT_ID)'
1010
# github.com/xjasonlyu/tun2socks/blob/bf745d0e0/Makefile#L14
1111
LDFLAGS_DEBUG='-buildid= -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X $(IMPORT_PATH)/intra/core.Commit=$(COMMIT_ID)'
1212
LDFLAGS='-w -s -buildid= -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X $(IMPORT_PATH)/intra/core.Commit=$(COMMIT_ID)'
13+
CGO_LDFLAGS="$(CGO_LDFLAGS) -s -w -Wl,-z,max-page-size=16384"
1314

1415
# github.com/golang/mobile/blob/a1d90793fc/cmd/gomobile/bind.go#L36
1516
GOBIND=bind -trimpath -v -x -a -javapkg com.celzero.firestack

0 commit comments

Comments
 (0)