Added -buildmode=pie for security.
This commit is contained in:
parent
8385e36340
commit
39e872256b
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ PREFIX:=/usr/local
|
|||||||
|
|
||||||
VERSION=23.34.0
|
VERSION=23.34.0
|
||||||
|
|
||||||
FLAGS:=-modcacherw -mod=readonly -trimpath
|
FLAGS:=-buildmode=pie -modcacherw -mod=readonly -trimpath
|
||||||
LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
LDFLAGS:= -ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
|
||||||
|
|
||||||
all: web/*.pug.go ${TARGET}
|
all: web/*.pug.go ${TARGET}
|
||||||
|
Loading…
Reference in New Issue
Block a user