linux: Make fdopendir fail with O_PATH (BZ 30373)
[glibc.git] / sysdeps / mips / Makefile
blobd770e59fc924fc9fa5b635af63ddadefec44a896
1 ifeq ($(subdir),misc)
2 sysdep_headers += regdef.h fpregdef.h sys/regdef.h sys/fpregdef.h \
3 sys/asm.h sgidefs.h
4 endif
6 ifeq ($(subdir),setjmp)
7 sysdep_routines += setjmp_aux
8 endif
10 ifeq ($(subdir),rt)
11 librt-sysdep_routines += rt-sysdep
12 librt-shared-only-routines += rt-sysdep
13 endif
15 ifeq ($(subdir),csu)
16 CPPFLAGS-crti.S += $(pic-ccflag)
17 CPPFLAGS-crtn.S += $(pic-ccflag)
18 endif
20 ASFLAGS-.os += $(pic-ccflag)
21 # libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE.
22 ASFLAGS-.o += $(pie-default)
23 ASFLAGS-.op += $(pie-default)
25 ifeq ($(subdir),elf)
26 ifneq ($(o32-fpabi),)
27 tests += tst-abi-interlink
29 fpabi-modules-names =
30 fpabi_list =
31 ifneq (,$(filter $(o32-fpabi),32 xx xxo))
32 fpabi-modules-names += tst-abi-fp32mod
33 CFLAGS-tst-abi-fp32mod.c += -mfp32
34 endif
35 ifneq (,$(filter $(o32-fpabi),xx))
36 fpabi-modules-names += tst-abi-fpxxmod
37 CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg
38 endif
39 ifneq (,$(filter $(o32-fpabi),xx xxo))
40 ifeq ($(has-modd-spreg),yes)
41 fpabi-modules-names += tst-abi-fpxxomod
42 CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg
43 endif
44 endif
45 ifneq (,$(filter $(o32-fpabi),xx 64a))
46 ifeq ($(has-mpf64),yes)
47 fpabi-modules-names += tst-abi-fp64amod
48 CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg
49 endif
50 endif
51 ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64))
52 ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes)
53 fpabi-modules-names += tst-abi-fp64mod
54 CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg
55 endif
56 endif
57 modules-names += $(fpabi-modules-names)
59 comma:=,
60 empty:=
61 space:=$(empty) $(empty)
62 fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\
63 $(fpabi-modules-names)))
64 CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list)
65 CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names))
66 CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi)
67 $(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\
68 $(fpabi-modules-names))
69 endif
71 ifeq ($(mips-mode-switch),yes)
72 ifeq ($(o32-fpabi),xx)
73 tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3
74 endif
75 endif
76 endif
78 ifeq ($(subdir),elf)
79 tests += tst-undefined-weak
80 modules-names += tst-undefined-weak-lib
82 $(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so
83 endif