From 403ccb155bb1d4e5d1b32cad029fb26ec21172b4 Mon Sep 17 00:00:00 2001 From: K3A Date: Fri, 26 Aug 2016 19:55:21 +0200 Subject: [PATCH] Update Makefile (#303) adding LDFLAGS for "shim" target as well. Signed-off-by: Mario Hros --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea68119..4a9cc0c 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ daemon-static: cd containerd && go build -ldflags "-w -extldflags -static ${LDFLAGS}" -tags "$(BUILDTAGS)" -o ../bin/containerd shim: bin - cd containerd-shim && go build -tags "$(BUILDTAGS)" -ldflags "-w" -o ../bin/containerd-shim + cd containerd-shim && go build -tags "$(BUILDTAGS)" -ldflags "-w ${LDFLAGS}" -o ../bin/containerd-shim shim-static: cd containerd-shim && go build -ldflags "-w -extldflags -static ${LDFLAGS}" -tags "$(BUILDTAGS)" -o ../bin/containerd-shim