chore: add -buildmode=pie (#266)

This commit is contained in:
shenghuang147 2023-08-09 22:23:43 +08:00 committed by GitHub
parent 11d9a732b7
commit 1017624381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ endif
## Begin Dae Build ## Begin Dae Build
dae: export GOOS=linux dae: export GOOS=linux
dae: ebpf 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 ## End Dae Build
## Begin Git Submodules ## Begin Git Submodules