mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
make static binary
This commit is contained in:
@@ -2,7 +2,7 @@ NAME=tun2socks
|
||||
BINDIR=$(shell pwd)/bin
|
||||
VERSION=$(shell git describe --tags --long || echo "unknown version")
|
||||
BUILDTAGS='fakedns session'
|
||||
GOBUILD=go build -ldflags '-s -w -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)"'
|
||||
GOBUILD=go build -ldflags '-s -w -extldflags "-static" -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)"'
|
||||
|
||||
all: build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user