From 10176243814025744c8ae7c6f78c2c74730243d2 Mon Sep 17 00:00:00 2001 From: shenghuang147 <65714801+shenghuang147@users.noreply.github.com> Date: Wed, 9 Aug 2023 22:23:43 +0800 Subject: [PATCH] chore: add -buildmode=pie (#266) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce1de79..ffb7950 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ endif ## Begin Dae Build dae: export GOOS=linux dae: ebpf - go build -o $(OUTPUT) -trimpath -ldflags "-s -w -X github.com/daeuniverse/dae/cmd.Version=$(VERSION) -X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=$(MAX_MATCH_SET_LEN)" . + go build -o $(OUTPUT) -trimpath -buildmode=pie -ldflags "-s -w -X github.com/daeuniverse/dae/cmd.Version=$(VERSION) -X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=$(MAX_MATCH_SET_LEN)" . ## End Dae Build ## Begin Git Submodules