Signed-off-by: Andrei Tudor TOPALĂ <topala.andrei@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #944
ifneq ($(HAVE_STACKPROTECTOR),y)
COMPFLAGS += -fno-stack-protector
endif
-COMPFLAGS += -fcf-protection=none
+COMPFLAGS-$(call gcc_version_ge,8,0) += -fcf-protection=none
+COMPFLAGS-$(call have_clang) += -fcf-protection=none
COMPFLAGS += -Wall -Wextra
COMPFLAGS-$(call have_clang) += -Wdocumentation -Wdocumentation-pedantic