From 39e872256bb43c420f8ed6ecbfb66bbf59ff534e Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 10 Sep 2023 18:16:07 +0400 Subject: [PATCH] Added -buildmode=pie for security. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c563e23..c5ed67c 100755 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ PREFIX:=/usr/local 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 all: web/*.pug.go ${TARGET}