reproducible build

This commit is contained in:
Vladislav Yarmak 2023-10-06 15:01:21 +03:00
parent 34f264c93d
commit 5e6a7ddf6e

View file

@ -1,7 +1,7 @@
PROGNAME = opera-proxy
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)'