Skip to content

Commit

Permalink
build: fix CET default in unix Makefile
Browse files Browse the repository at this point in the history
CET default flag was clobbering CFLAGS.

Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
  • Loading branch information
gbtucker authored and pablodelara committed Jan 15, 2024
1 parent e0fd782 commit 479b3f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 479b3f8

Please sign in to comment.