reproducible build

This commit is contained in:
Vladislav Yarmak 2023-10-06 15:04:02 +03:00
parent 42d06dec3e
commit 36316555a3
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PROGNAME = dumbproxy
OUTSUFFIX = bin/$(PROGNAME)
VERSION := $(shell git describe)
BUILDOPTS = -a -tags netgo
BUILDOPTS = -a -tags netgo -trimpath
LDFLAGS = -ldflags '-s -w -extldflags "-static" -X main.version=$(VERSION)'
LDFLAGS_NATIVE = -ldflags '-s -w -X main.version=$(VERSION)'