File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ DESTDIR=/usr/local
2222# Used to populate variables in version package.
2323VERSION =$(shell git describe --match 'v[0-9]* ' --dirty='.m' --always)
2424REVISION =$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
25+ PACKAGE =github.com/containerd/containerd
2526
2627ifneq "$(strip $(shell command -v go 2>/dev/null) ) " ""
2728 GOOS ?= $(shell go env GOOS)
9091GO_BUILDTAGS ?= seccomp apparmor
9192GO_BUILDTAGS += ${DEBUG_TAGS}
9293GO_TAGS =$(if $(GO_BUILDTAGS ) ,-tags "$(GO_BUILDTAGS ) ",)
93- GO_LDFLAGS =-ldflags '-X $(PKG ) /version.Version=$(VERSION ) -X $(PKG ) /version.Revision=$(REVISION ) -X $(PKG ) /version.Package=$(PKG ) $(EXTRA_LDFLAGS ) '
94- SHIM_GO_LDFLAGS =-ldflags '-X $(PKG ) /version.Version=$(VERSION ) -X $(PKG ) /version.Revision=$(REVISION ) -X $(PKG ) /version.Package=$(PKG ) -extldflags "-static" $(EXTRA_LDFLAGS ) '
94+ GO_LDFLAGS =-ldflags '-X $(PKG ) /version.Version=$(VERSION ) -X $(PKG ) /version.Revision=$(REVISION ) -X $(PKG ) /version.Package=$(PACKAGE ) $(EXTRA_LDFLAGS ) '
95+ SHIM_GO_LDFLAGS =-ldflags '-X $(PKG ) /version.Version=$(VERSION ) -X $(PKG ) /version.Revision=$(REVISION ) -X $(PKG ) /version.Package=$(PACKAGE ) -extldflags "-static" $(EXTRA_LDFLAGS ) '
9596
9697# Replaces ":" (*nix), ";" (windows) with newline for easy parsing
9798GOPATHS =$(shell echo ${GOPATH} | tr ":" "\n" | tr ";" "\n")
You can’t perform that action at this time.
0 commit comments