build: fix CET default in unix Makefile

CET default flag was clobbering CFLAGS.

Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2024-01-09 19:34:41 +00:00 committed by Pablo de Lara
parent e0fd782974
commit 479b3f84f9

View File

@ -80,7 +80,8 @@ LDFLAGS_so = -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,$(soname)
ifeq ($(shell uname),Linux)
ifeq ($(host_cpu),x86_64)
CFLAGS_ = -fcf-protection=full
CFLAGS_ += -fcf-protection=full
ASFLAGS_ += -DINTEL_CET_ENABLED
LDFLAGS += -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
endif
endif