1# We don't need any header files.
2abi-includes :=
3
4abi-variants := 32 64 x32
5
6abi-32-condition := !defined __x86_64__
7abi-64-condition := defined __x86_64__ && defined __LP64__
8abi-x32-condition := defined __x86_64__ && defined __ILP32__
9
10ifeq ($(subdir),misc)
11sysdep_headers += sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h sys/io.h
12endif
13
14ifeq ($(subdir),nptl)
15CFLAGS-elision-lock.c += -mrtm
16CFLAGS-elision-unlock.c += -mrtm
17CFLAGS-elision-timed.c += -mrtm
18CFLAGS-elision-trylock.c += -mrtm
19endif
20
21ifeq ($(subdir),setjmp)
22tests += tst-saved_mask-1
23endif
24
25ifneq ($(enable-cet),no)
26ifeq ($(subdir),elf)
27tests += tst-cet-property-1 tst-cet-property-2
28
29CFLAGS-tst-cet-property-1.o += -fcf-protection
30ASFLAGS-tst-cet-property-dep-2.o += -fcf-protection
31
32$(objpfx)tst-cet-property-2: $(objpfx)tst-cet-property-dep-2.o
33$(objpfx)tst-cet-property-2.out: $(objpfx)tst-cet-property-2 \
34				 $(objpfx)tst-cet-property-1.out
35	env $(run-program-env) $(test-via-rtld-prefix) \
36	  $(objpfx)tst-cet-property-2 \
37	  < $(objpfx)tst-cet-property-1.out > $@; \
38	  $(evaluate-test)
39endif
40
41ifeq ($(subdir),posix)
42tests += tst-cet-vfork-1
43CFLAGS-tst-cet-vfork-1.c += -mshstk
44endif
45
46ifeq ($(subdir),stdlib)
47tests += tst-cet-setcontext-1
48CFLAGS-tst-cet-setcontext-1.c += -mshstk
49endif
50endif
51