mirror of
https://gitee.com/openeuler/A-Tune.git
synced 2025-12-06 16:09:25 +08:00
!251 add Go build flags
From: @gaoruoshu Reviewed-by: @xiezhipeng1,@hanxinke Signed-off-by: @hanxinke
This commit is contained in:
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ SRCVERSION = $(shell git rev-parse --short HEAD 2>/dev/null)
|
||||
ATUNEVERSION = $(VERSION)$(if $(SRCVERSION),($(SRCVERSION)))
|
||||
|
||||
GOLDFLAGS += -X gitee.com/openeuler/A-Tune/common/config.Version=$(ATUNEVERSION)
|
||||
GOFLAGS = -ldflags "$(GOLDFLAGS)"
|
||||
GOFLAGS = -ldflags '-s -w -extldflags "-static" -extldflags "-zrelro" -extldflags "-znow" -extldflags "-ftrapv" $(GOLDFLAGS)'
|
||||
|
||||
CERT_PATH=$(DESTDIR)/etc/atuned
|
||||
GRPC_CERT_PATH=$(CERT_PATH)/grpc_certs
|
||||
|
||||
@@ -144,6 +144,9 @@ make models
|
||||
%systemd_postun_with_restart atuned.service
|
||||
|
||||
%changelog
|
||||
* Sat Dec 26 2020 gaoruoshu<gaoruoshu@huawei.com> - 0.3-0.3
|
||||
- add security Go compile flags
|
||||
|
||||
* Sat Nov 28 2020 hanxinke<hanxinke@huawei.com> - 0.3-0.2
|
||||
- The engine package conflicts with atune < 0.3-0.1.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user