]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/mips/Makefile
[MIPS] Raise highest supported EI_ABIVERSION value [BZ #24916]
[thirdparty/glibc.git] / sysdeps / mips / Makefile
CommitLineData
df8c87f8 1ifeq ($(subdir),misc)
7e54ab95
AJ
2sysdep_headers += regdef.h fpregdef.h sys/regdef.h sys/fpregdef.h \
3 sys/asm.h sgidefs.h
df8c87f8
UD
4endif
5
e6eb4808 6ifeq ($(subdir),setjmp)
94f347c0 7sysdep_routines += setjmp_aux
e6eb4808 8endif
2cc89a49
AJ
9
10ifeq ($(subdir),rt)
11librt-sysdep_routines += rt-sysdep
d9067fca 12librt-shared-only-routines += rt-sysdep
2cc89a49 13endif
c6e2897b 14
32a61531 15ifeq ($(subdir),csu)
25a368f2
JM
16CPPFLAGS-crti.S += $(pic-ccflag)
17CPPFLAGS-crtn.S += $(pic-ccflag)
32a61531
TV
18endif
19
20ifeq ($(subdir),nptl)
25a368f2
JM
21CPPFLAGS-pt-crti.S += $(pic-ccflag)
22CPPFLAGS-crtn.S += $(pic-ccflag)
32a61531
TV
23endif
24
c6e2897b 25ASFLAGS-.os += $(pic-ccflag)
9d7a3741
L
26# libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE.
27ASFLAGS-.o += $(pie-default)
28ASFLAGS-.op += $(pie-default)
0bd95672
MF
29
30ifeq ($(subdir),elf)
31ifneq ($(o32-fpabi),)
32tests += tst-abi-interlink
33
34fpabi-modules-names =
35fpabi_list =
36ifneq (,$(filter $(o32-fpabi),32 xx xxo))
37fpabi-modules-names += tst-abi-fp32mod
38CFLAGS-tst-abi-fp32mod.c += -mfp32
39endif
40ifneq (,$(filter $(o32-fpabi),xx))
41fpabi-modules-names += tst-abi-fpxxmod
42CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg
43endif
44ifneq (,$(filter $(o32-fpabi),xx xxo))
578d0805 45ifeq ($(has-modd-spreg),yes)
0bd95672
MF
46fpabi-modules-names += tst-abi-fpxxomod
47CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg
48endif
578d0805 49endif
0bd95672 50ifneq (,$(filter $(o32-fpabi),xx 64a))
578d0805 51ifeq ($(has-mpf64),yes)
0bd95672
MF
52fpabi-modules-names += tst-abi-fp64amod
53CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg
54endif
578d0805 55endif
0bd95672 56ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64))
578d0805 57ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes)
0bd95672
MF
58fpabi-modules-names += tst-abi-fp64mod
59CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg
60endif
578d0805 61endif
0bd95672
MF
62modules-names += $(fpabi-modules-names)
63
64comma:=,
65empty:=
66space:=$(empty) $(empty)
67fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\
68 $(fpabi-modules-names)))
69CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list)
70CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names))
71CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi)
72$(objpfx)tst-abi-interlink: $(libdl)
73$(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\
74 $(fpabi-modules-names))
75endif
76
77ifeq ($(mips-mode-switch),yes)
78ifeq ($(o32-fpabi),xx)
79tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3
80$(objpfx)tst-mode-switch-1: $(shared-thread-library)
81$(objpfx)tst-mode-switch-2: $(shared-thread-library)
82endif
83endif
84endif
edd8d70b
MS
85
86ifeq ($(subdir),elf)
87tests += tst-undefined-weak
88modules-names += tst-undefined-weak-lib
89
90$(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so
91endif