1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (c) 2017 Linux Test Project 3 4top_srcdir ?= ../.. 5 6include $(top_srcdir)/include/mk/testcases.mk 7 8CFLAGS += -D_GNU_SOURCE 9 10stack_clash: CFLAGS += -fno-optimize-sibling-calls 11 12cve-2016-7042: LDLIBS += $(KEYUTILS_LIBS) 13 14cve-2014-0196 cve-2016-7117 cve-2017-2671 cve-2017-17052 cve-2017-17053: CFLAGS += -pthread 15cve-2014-0196 cve-2016-7117 cve-2017-2671: LDLIBS += -lrt 16 17ifneq ($(ANDROID),1) 18cve-2014-0196: LDLIBS += -lutil 19endif 20 21ifneq (,$(filter $(HOST_CPU),x86 x86_64)) 22meltdown: CFLAGS += -msse2 23endif 24 25cve-2015-3290: CFLAGS += -pthread -fomit-frame-pointer 26 27include $(top_srcdir)/include/mk/generic_leaf_target.mk 28