19 lines
602 B
Diff
19 lines
602 B
Diff
|
|
diff --git a/Makefile b/Makefile
|
||
|
|
index c92df71..724911a 100644
|
||
|
|
--- a/Makefile
|
||
|
|
+++ b/Makefile
|
||
|
|
@@ -10,11 +10,12 @@ DATE ?= $(shell date -u -d @${SOURCE_DATE_EPOCH} +"%Y-%m-%dT%H:%M:%SZ")
|
||
|
|
VERSION ?= 0.10.0
|
||
|
|
|
||
|
|
test: ## Run all tests
|
||
|
|
- @go clean --testcache && go test -v ./...
|
||
|
|
+ @go clean --testcache && go test -ldflags -extldflags=-Wl,-z,lazy -v ./...
|
||
|
|
|
||
|
|
build: ## Builds the CLI
|
||
|
|
@go build ${GO_FLAGS} \
|
||
|
|
-ldflags "-w -s \
|
||
|
|
+ -extldflags=-Wl,-z,lazy \
|
||
|
|
-X ${NAME}/cmd/global.Version=${VERSION} \
|
||
|
|
-X ${PACKAGE}/cmd/global.Version=${VERSION} \
|
||
|
|
-X ${NAME}/cmd/global.Commit=${GIT_REV} \
|