Update Makefile (#303)

adding LDFLAGS for "shim" target as well.

Signed-off-by: Mario Hros <spam@k3a.me>
This commit is contained in:
K3A 2016-08-26 19:55:21 +02:00 committed by Michael Crosby
parent 8508d2bec9
commit 403ccb155b
1 changed files with 1 additions and 1 deletions

View File

@ -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