Disable spectre v2 options for CC=clang compatibility
This commit is contained in:
4
Makefile
4
Makefile
@@ -25,8 +25,8 @@ CFLAGS+= -fstack-clash-protection
|
||||
CFLAGS+= -pie -fPIE
|
||||
# Protect all stacks
|
||||
CFLAGS+= -fstack-protector-all --param ssp-buffer-size=4
|
||||
# Enable RETPOLINE against Spectre v2
|
||||
CFLAGS+= -mindirect-branch=thunk -mfunction-return=thunk
|
||||
# Enable RETPOLINE against Spectre v2 (only works with gcc)
|
||||
#CFLAGS+= -mindirect-branch=thunk -mfunction-return=thunk
|
||||
# Link against <openssl.h>
|
||||
LDLIBS= -lssl -lcrypto
|
||||
|
||||
|
||||
Reference in New Issue
Block a user