improve build repeatability
still not quite there, but this should make it a bit easier refs #2
This commit is contained in:
parent
78a05ddb5b
commit
e4a22c7ee5
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
VERSION=`git describe --tags --dirty --always`
|
||||
|
||||
GOFLAGS=-ldflags "-X main.version=${VERSION}" -asmflags -trimpath
|
||||
GOFLAGS=-ldflags "-X main.version=${VERSION}" -gcflags=all=-trimpath=$(PWD) -asmflags=all=-trimpath=$(PWD)
|
||||
|
||||
build:
|
||||
GOARCH=amd64 go build ${GOFLAGS} -o wesher-amd64 ${OPTS}
|
||||
|
|
Loading…
Reference in New Issue