Files
nixpkgs/pkgs/by-name/fa/fan2go/lazy-binding.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
602 B
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
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} \