updated makefile to add cf-protection for i*86 builds

This commit is contained in:
Jan Günter 2021-10-16 15:37:40 +02:00
parent b83f58a5b7
commit bca3521472

View file

@ -21,7 +21,7 @@ ARCH ?= $(shell $(CXX) -dumpmachine | cut -d "-" -f 1)
override PLATFORM_LC := $(shell echo $(PLATFORM) | tr '[:upper:]' '[:lower:]')
#? Only enable fcf-protection if on x86_64
ifeq ($(ARCH),x86_64)
ifneq ($(filter x86_64 i%86, $(ARCH)),)
override ADDFLAGS += -fcf-protection
endif