Merge pull request #2994 from hjl-tools/hjl/cet-report/dev

x86: Append -z cet-report=error to LDFLAGS
This commit is contained in:
Felix Handte 2022-01-20 14:58:13 -05:00 committed by GitHub
commit c7e8315d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,10 @@ CFLAGS += -Qunused-arguments -Wa,--noexecstack
endif
endif
ifeq ($(shell echo "int main(int argc, char* argv[]) { (void)argc; (void)argv; return 0; }" | $(CC) $(FLAGS) -z cet-report=error -x c -Werror - -o $(VOID) 2>$(VOID) && echo 1 || echo 0),1)
LDFLAGS += -z cet-report=error
endif
HAVE_COLORNEVER = $(shell echo a | grep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
GREP_OPTIONS ?=
ifeq ($HAVE_COLORNEVER, 1)