This repository was archived by the owner on Jan 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ GIT_COMMIT ?= `git rev-parse --short HEAD`
3535VERSION ?= ` git describe --always `
3636GO_VERSION ?= ` go version | awk ' {print $$3}' `
3737BUILD_DATE = ` date +%FT%T%z `
38- BUILD_FLAGS = "` [[ -z " $( STATIC ) " ]] && echo " " || echo " -extldflags=-static " ` -X github.com/cs3org/reva/cmd/revad.gitCommit=$(GIT_COMMIT ) -X github.com/cs3org/reva/cmd/revad.version=$(VERSION ) -X github.com/cs3org/reva/cmd/revad.goVersion=$(GO_VERSION ) -X github.com/cs3org/reva/cmd/revad.buildDate=$(BUILD_DATE ) "
38+ BUILD_FLAGS = "-X github.com/cs3org/reva/cmd/revad.gitCommit=$(GIT_COMMIT ) -X github.com/cs3org/reva/cmd/revad.version=$(VERSION ) -X github.com/cs3org/reva/cmd/revad.goVersion=$(GO_VERSION ) -X github.com/cs3org/reva/cmd/revad.buildDate=$(BUILD_DATE ) "
3939
4040.PHONY : revad
4141revad :
42- go build -ldflags $(BUILD_FLAGS ) -o ./cmd/revad/revad ./cmd/revad/main
42+ go build -ldflags -extldflags=-static $(BUILD_FLAGS ) -o ./cmd/revad/revad ./cmd/revad/main
4343
4444.PHONY : revad-ceph
4545revad-ceph :
4646 go build -ldflags $(BUILD_FLAGS ) -tags ceph -o ./cmd/revad/revad ./cmd/revad/main
4747
4848.PHONY : reva
4949reva :
50- go build -ldflags $(BUILD_FLAGS ) -o ./cmd/reva/reva ./cmd/reva
50+ go build -ldflags -extldflags=-static $(BUILD_FLAGS ) -o ./cmd/reva/reva ./cmd/reva
5151
5252.PHONY : docker-reva
5353docker-reva :
You can’t perform that action at this time.
0 commit comments