]> sourceware.org Git - glibc.git/blame - sysdeps/mips/Makefile
elf: Make dl-fptr and dl-symaddr hppa specific
[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
c6e2897b 20ASFLAGS-.os += $(pic-ccflag)
9d7a3741
L
21# libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE.
22ASFLAGS-.o += $(pie-default)
23ASFLAGS-.op += $(pie-default)
0bd95672
MF
24
25ifeq ($(subdir),elf)
ef700562
AH
26
27# These tests fail on all mips configurations (BZ 29404)
28test-xfail-tst-audit24a = yes
29test-xfail-tst-audit24b = yes
30test-xfail-tst-audit24c = yes
31test-xfail-tst-audit24d = yes
32test-xfail-tst-audit25a = yes
33test-xfail-tst-audit25b = yes
34
0bd95672
MF
35ifneq ($(o32-fpabi),)
36tests += tst-abi-interlink
37
38fpabi-modules-names =
39fpabi_list =
40ifneq (,$(filter $(o32-fpabi),32 xx xxo))
41fpabi-modules-names += tst-abi-fp32mod
42CFLAGS-tst-abi-fp32mod.c += -mfp32
43endif
44ifneq (,$(filter $(o32-fpabi),xx))
45fpabi-modules-names += tst-abi-fpxxmod
46CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg
47endif
48ifneq (,$(filter $(o32-fpabi),xx xxo))
578d0805 49ifeq ($(has-modd-spreg),yes)
0bd95672
MF
50fpabi-modules-names += tst-abi-fpxxomod
51CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg
52endif
578d0805 53endif
0bd95672 54ifneq (,$(filter $(o32-fpabi),xx 64a))
578d0805 55ifeq ($(has-mpf64),yes)
0bd95672
MF
56fpabi-modules-names += tst-abi-fp64amod
57CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg
58endif
578d0805 59endif
0bd95672 60ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64))
578d0805 61ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes)
0bd95672
MF
62fpabi-modules-names += tst-abi-fp64mod
63CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg
64endif
578d0805 65endif
0bd95672
MF
66modules-names += $(fpabi-modules-names)
67
68comma:=,
69empty:=
70space:=$(empty) $(empty)
71fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\
72 $(fpabi-modules-names)))
73CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list)
74CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names))
75CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi)
0bd95672
MF
76$(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\
77 $(fpabi-modules-names))
78endif
79
80ifeq ($(mips-mode-switch),yes)
81ifeq ($(o32-fpabi),xx)
82tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3
0bd95672
MF
83endif
84endif
85endif
edd8d70b
MS
86
87ifeq ($(subdir),elf)
88tests += tst-undefined-weak
89modules-names += tst-undefined-weak-lib
90
91$(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so
92endif
This page took 0.454418 seconds and 6 git commands to generate.