File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ BUILDTAGS=
66RUNTIME ?= runc
77COMMIT ?= $(shell git describe --dirty --long --always --tags 2> /dev/null)
88VERSION := ${shell cat ./VERSION}
9- BUILD_FLAGS := -tags "$(BUILDTAGS ) " -ldflags "-X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) " $(EXTRA_FLAGS )
10- STATIC_BUILD_FLAGS := -tags "$(BUILDTAGS ) netgo osusergo" -ldflags "-extldflags -static -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) " $(EXTRA_FLAGS )
9+ EXTRA_LDFLAGS ?= ""
10+ BUILD_FLAGS := -tags "$(BUILDTAGS ) " -ldflags "-X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) ${EXTRA_LDFLAGS}" $(EXTRA_FLAGS )
11+ STATIC_BUILD_FLAGS := -tags "$(BUILDTAGS ) netgo osusergo" -ldflags "-extldflags -static -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) ${EXTRA_LDFLAGS}" $(EXTRA_FLAGS )
1112VALIDATION_TESTS ?= $(patsubst % .go,% .t,$(shell find ./validation/ -name * .go | grep -v util) )
1213
1314all : tool runtimetest validation-executables
You can’t perform that action at this time.
0 commit comments