Skip to content

Commit

Permalink
Add support for static linking (#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita authored Mar 16, 2023
1 parent 83b8366 commit 0374913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ GIT_COMMIT ?= `git rev-parse --short HEAD`
VERSION ?= `git describe --always`
GO_VERSION ?= `go version | awk '{print $$3}'`
BUILD_DATE = `date +%FT%T%z`
BUILD_FLAGS = "-X main.gitCommit=$(GIT_COMMIT) -X main.version=$(VERSION) -X main.goVersion=$(GO_VERSION) -X main.buildDate=$(BUILD_DATE)"
BUILD_FLAGS = "`[[ -z "$(STATIC)" ]] && echo "" || echo "-extldflags=-static"` -X main.gitCommit=$(GIT_COMMIT) -X main.version=$(VERSION) -X main.goVersion=$(GO_VERSION) -X main.buildDate=$(BUILD_DATE)"

.PHONY: revad
revad:
Expand Down
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-static.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add support for static linking

We've added support for compiling reva with static linking enabled.
It's possible to do so with the `STATIC` flag: `make revad STATIC=true`

https://github.com/cs3org/reva/pull/3733

0 comments on commit 0374913

Please sign in to comment.