Browse Source

reproducible build

Vladislav Yarmak 1 năm trước cách đây
mục cha
commit
2786cedf84
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -1,7 +1,7 @@
 PROGNAME = dtlspipe
 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)'
 MAIN_PACKAGE = ./cmd/$(PROGNAME)