build(Makefile): add -buildmode=pie to go build flags
This commit is contained in:
parent
439445ee0f
commit
a7b314cf32
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue