mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:24:45 +07:00
ci/hotfix: demise buildarg=pie (#282)
This commit is contained in:
parent
074f9db2da
commit
5b4f9e03b3
8
Makefile
8
Makefile
@ -22,7 +22,6 @@ else ifeq ($(wildcard $(STRIP_PATH)),)
|
|||||||
else
|
else
|
||||||
STRIP_FLAG := -strip=$(STRIP_PATH)
|
STRIP_FLAG := -strip=$(STRIP_PATH)
|
||||||
endif
|
endif
|
||||||
GOARCH ?= $(shell go env GOARCH)
|
|
||||||
|
|
||||||
# Do NOT remove the line below. This line is for CI.
|
# Do NOT remove the line below. This line is for CI.
|
||||||
#export GOMODCACHE=$(PWD)/go-mod
|
#export GOMODCACHE=$(PWD)/go-mod
|
||||||
@ -37,12 +36,7 @@ else
|
|||||||
VERSION ?= unstable-$(date).r$(count).$(commit)
|
VERSION ?= unstable-$(date).r$(count).$(commit)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# amd64 and arm64 use PIE build mode by default
|
BUILD_ARGS := -trimpath -ldflags "-s -w -X github.com/daeuniverse/dae/cmd.Version=$(VERSION) -X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=$(MAX_MATCH_SET_LEN)" $(BUILD_ARGS)
|
||||||
ifeq ($(GOARCH),$(filter $(GOARCH),amd64 arm64))
|
|
||||||
BUILD_MODE ?= -buildmode=pie
|
|
||||||
endif
|
|
||||||
|
|
||||||
BUILD_ARGS := -trimpath -ldflags "-s -w -X github.com/daeuniverse/dae/cmd.Version=$(VERSION) -X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=$(MAX_MATCH_SET_LEN)" $(BUILD_MODE) $(BUILD_ARGS)
|
|
||||||
|
|
||||||
.PHONY: clean-ebpf ebpf dae submodule submodules
|
.PHONY: clean-ebpf ebpf dae submodule submodules
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user