Skip to content

Commit 479b3f8

Browse files
gbtuckerpablodelara
authored andcommitted
build: fix CET default in unix Makefile
CET default flag was clobbering CFLAGS. Signed-off-by: Greg Tucker <[email protected]>
1 parent e0fd782 commit 479b3f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ LDFLAGS_so = -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,$(soname)
8080

8181
ifeq ($(shell uname),Linux)
8282
ifeq ($(host_cpu),x86_64)
83-
CFLAGS_ = -fcf-protection=full
83+
CFLAGS_ += -fcf-protection=full
84+
ASFLAGS_ += -DINTEL_CET_ENABLED
8485
LDFLAGS += -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
8586
endif
8687
endif

0 commit comments

Comments
 (0)