Update Makefile

This commit is contained in:
Jason
2020-08-09 17:19:31 +08:00
parent 05c0f4188b
commit 2eb63fbdbd
+1 -1
View File
@@ -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 -extldflags "-static" -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)"'
GOBUILD=go build -trimpath -ldflags '-s -w -extldflags "-static" -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)"'
all: build