From a0ff2a50543f515cd61f0ee50c8a0f6f4a4fa287 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 14 Aug 2019 21:49:57 +0800 Subject: [PATCH] Update Makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cdea84d..41bdad6 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,9 @@ CMD_DIR=$(shell pwd)/cmd VERSION=$(shell git describe --tags --long || echo "unknown version") BUILD_TIME=$(shell date -u) BUILD_TAGS='fakeDNS stats' -GOBUILD=go build -ldflags -s -w -X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)" \ - -X "github.com/xjasonlyu/tun2socks/constant.BuildTime=$(BUILD_TIME)" +GOBUILD=go build -ldflags '-X "github.com/xjasonlyu/tun2socks/constant.Version=$(VERSION)" \ + -X "github.com/xjasonlyu/tun2socks/constant.BuildTime=$(BUILD_TIME)" \ + -w -s' all: build