From 61397ce89ceaa08ea1d472a0aaebd0ed794579ea Mon Sep 17 00:00:00 2001 From: zhangsong34 Date: Thu, 12 Mar 2020 20:11:37 +0800 Subject: [PATCH] syscontainer-tools: change build mode to static Signed-off-by: zhangsong34 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78334d4..4b3af7d 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ VERSION := $(shell cat ./VERSION) BEP_DIR=/tmp/syscontainer-tools-build-bep BEP_FLAGS=-tmpdir=/tmp/syscontainer-tools-build-bep -GO_LDFLAGS="-s -w -buildid=IdByiSula -extldflags=-zrelro -extldflags=-znow $(BEP_FLAGS) -X main.gitCommit=${COMMIT} -X main.version=${VERSION}" +GO_LDFLAGS="-w -buildid=IdByiSula -extldflags -static $(BEP_FLAGS) -X main.gitCommit=${COMMIT} -X main.version=${VERSION}" ENV = GOPATH=${GOPATH} CGO_ENABLED=1 ## PLEASE be noticed that the vendor dir can only work with golang > 1.6 !!