xref: /aosp_15_r20/external/ltp/testcases/cve/Makefile (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
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 -Wno-infinite-recursion
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