build(Makefile): add -buildmode=pie to go build flags

This commit is contained in:
ayntgl 2022-02-24 14:27:16 +04:00
parent 439445ee0f
commit a7b314cf32

View file

@ -1,11 +1,19 @@
.PHONY: build
build:
go build -trimpath -ldflags "-s -w" .
go build \
-trimpath \
-buildmode=pie \
-ldflags "-s -w" \
.
.PHONY: test
test:
go test -v ./...
.PHONY: fmt
fmt:
gofmt -d -e -s .
.PHONY: clean
clean:
go clean
go clean