Skip to content

Commit e9d4b04

Browse files
committed
make: disable linker name checks for debug builds
1 parent cc3caf9 commit e9d4b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ COMMIT_ID=$(shell git rev-parse --short HEAD)
88
DATESTR=$(shell date -u +'%Y%m%d%H%M%S')
99
XGO_LDFLAGS='-s -w -X main.version=$(COMMIT_ID)'
1010
# github.com/xjasonlyu/tun2socks/blob/bf745d0e0/Makefile#L14
11-
LDFLAGS_DEBUG='-buildid= -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X $(IMPORT_PATH)/intra/core.Commit=$(COMMIT_ID)'
11+
LDFLAGS_DEBUG='-checklinkname=0 -buildid= -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X $(IMPORT_PATH)/intra/core.Commit=$(COMMIT_ID)'
1212
# checklinkname to override runtime.secureMode; see: core/overreach.go
1313
# github.com/golang/go/issues/69868
1414
LDFLAGS='-checklinkname=0 -w -s -buildid= -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X $(IMPORT_PATH)/intra/core.Commit=$(COMMIT_ID)'

0 commit comments

Comments
 (0)